Skip to content

Commit

Permalink
refactor(src/cli/cli.cc): use '-Wno-unused-command-line-argument' whe…
Browse files Browse the repository at this point in the history
…n building for linux/windows extensions
  • Loading branch information
jwerle committed Aug 31, 2023
1 parent 420fc3c commit 9da1469
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4553,6 +4553,10 @@ int main (const int argc, const char* argv[]) {
compilerFlags += " -stdlib=libstdc++";
}

if (platform.win || platform.linux) {
compilerFlags += " -Wno-unused-command-line-argument";
}

if (CXX.size() == 0) {
if (compiler.ends_with("clang++")) {
compiler = compiler.substr(0, compiler.size() - 2);
Expand Down

0 comments on commit 9da1469

Please sign in to comment.