From 1700683cf6db81957857326b4307a40556e79868 Mon Sep 17 00:00:00 2001 From: Ehsan Khodadad Date: Fri, 7 Feb 2025 15:29:21 +0100 Subject: [PATCH 1/2] Patmos can compile LF codes with its prev compiler --- .github/actions/setup-patmos/action.yml | 2 +- .github/workflows/c-embedded.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-patmos/action.yml b/.github/actions/setup-patmos/action.yml index 7ecc47a67e..68b7f05bb6 100644 --- a/.github/actions/setup-patmos/action.yml +++ b/.github/actions/setup-patmos/action.yml @@ -28,7 +28,7 @@ runs: mkdir ~/t-crest cd ~/t-crest git clone https://github.com/t-crest/patmos-misc.git misc - ./misc/build.sh + ./misc/build.sh toolchain1 patmos-clang --version which patmos-clang shell: bash diff --git a/.github/workflows/c-embedded.yml b/.github/workflows/c-embedded.yml index bc5c3e217a..ea9b2acf25 100644 --- a/.github/workflows/c-embedded.yml +++ b/.github/workflows/c-embedded.yml @@ -25,5 +25,5 @@ jobs: # uses: ./.github/workflows/c-flexpret-tests.yml # Run the C Patmos integration tests. -# patmos: -# uses: ./.github/workflows/c-patmos-tests.yml + patmos: + uses: ./.github/workflows/c-patmos-tests.yml From 5accb6f1d1f4df8a8895adcc87631189336ebcd8 Mon Sep 17 00:00:00 2001 From: Ehsan Khodadad Date: Sat, 8 Feb 2025 11:47:56 +0100 Subject: [PATCH 2/2] commenting out recently added lines to test --- .../main/java/org/lflang/generator/c/CCmakeGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java b/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java index 7044265574..cfa9e98b7c 100644 --- a/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java +++ b/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java @@ -237,13 +237,13 @@ CodeBuilder generateCMakeCode( break; case PATMOS: cMakeCode.newLine(); - cMakeCode.pr("SET(CMAKE_SYSTEM_NAME patmos)"); - cMakeCode.pr("SET(CMAKE_SYSTEM_PROCESSOR patmos)"); + // cMakeCode.pr("SET(CMAKE_SYSTEM_NAME patmos)"); + // cMakeCode.pr("SET(CMAKE_SYSTEM_PROCESSOR patmos)"); cMakeCode.pr("# Include toolchain file and set project"); cMakeCode.pr( "find_program(CLANG_EXECUTABLE NAMES patmos-clang REQUIRED DOC \"Path to the clang" + " front-end.\")"); - cMakeCode.pr("set(CMAKE_C_FLAGS_INIT \"-O2 -DNDEBUG\")"); + // cMakeCode.pr("set(CMAKE_C_FLAGS_INIT \"-O2 -DNDEBUG\")"); cMakeCode.pr("set(CMAKE_C_COMPILER ${CLANG_EXECUTABLE})"); cMakeCode.pr(