Skip to content

Commit

Permalink
GCCJIT: enable -Wall flag in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed May 3, 2024
1 parent 8f2fb89 commit a9c679c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JITImpl/GCC/GCCJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ void *GCCJIT::translate(std::string code, std::set<std::string> headerpaths, std
codeFile.close();
}
std::stringstream ss;
ss << "gcc -c -std=c99 -fPIC -march=native -mtune=native -pipe "; // CHANGED -Wall eliminated
ss << "gcc -c -std=c99 -fPIC -march=native -mtune=native -pipe ";
if (debug)
ss << "-g -O0 ";
ss << "-g -O0 -Wall";
else
ss << "-Ofast ";
for (std::set<std::string>::const_iterator iter = headerpaths.begin(); iter != headerpaths.end(); iter++)
Expand Down

0 comments on commit a9c679c

Please sign in to comment.