Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Dec 16, 2023
1 parent 06a2f69 commit 270c549
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Cmd/Build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <sstream>
#include <stdexcept>

static String OUT_DIR = "poac-out";
static String OUT_DIR = "poac-out/debug";

struct Target {
Vec<String> commands;
Expand Down Expand Up @@ -128,10 +128,9 @@ int build(Vec<String> args) {
if (!args.empty()) {
if (args[0] == "-d" || args[0] == "--debug") {
debug = true;
OUT_DIR += "/debug";
} else if (args[0] == "-r" || args[0] == "--release") {
debug = false;
OUT_DIR += "/release";
OUT_DIR = "poac-out/release";
} else {
Logger::error(
"invalid option: `", args[0], "`", "\n\n",
Expand Down

0 comments on commit 270c549

Please sign in to comment.