Skip to content

Commit

Permalink
Merge pull request #2435 from EhsanKhodadad/master
Browse files Browse the repository at this point in the history
bug fix in the Patmos platform
  • Loading branch information
erlingrj authored Nov 21, 2024
2 parents 8d614be + b7dac8b commit 4a134ee
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 4a134ee

Please sign in to comment.