Skip to content

Commit

Permalink
bug fix in patmos platform
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanKhodadad committed Nov 14, 2024
1 parent 2e6d57f commit b7dac8b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ CodeBuilder generateCMakeCode(
"find_program(CLANG_EXECUTABLE NAMES patmos-clang REQUIRED DOC \"Path to the clang"
+ " front-end.\")");
cMakeCode.pr("set(CMAKE_C_COMPILER ${CLANG_EXECUTABLE})");
cMakeCode.pr(
"set(CMAKE_C_FLAGS_RELEASE \"-O2 -DNDEBUG\")"); // patmos-clang cannot compiler -O3
cMakeCode.pr("project(" + executableName + " LANGUAGES C)");
cMakeCode.newLine();
break;
Expand Down

0 comments on commit b7dac8b

Please sign in to comment.