From f6fcccbb63253dad7763fbf83949b934e83566d0 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Wed, 10 Jul 2024 21:33:44 +0200 Subject: [PATCH] Add `Xcc` flags that fixes crash on ESP32-C3. This fixes #15, making the `smart-light` example run on ESP32-C3. I'm don't have enough knowledge to know if this is the proper fix/correct location to add these flags, but it makes the example work for me at least. --- smart-light/main/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smart-light/main/CMakeLists.txt b/smart-light/main/CMakeLists.txt index 3831999..9259459 100644 --- a/smart-light/main/CMakeLists.txt +++ b/smart-light/main/CMakeLists.txt @@ -46,6 +46,8 @@ target_compile_options(${COMPONENT_LIB} PUBLIC "$<$:SHEL -Xcc -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -Xcc -D_GLIBCXX_USE_POSIX_SEMAPHORE -Xcc -D_POSIX_READER_WRITER_LOCKS + -Xcc -march=rv32imc_zicsr_zifencei + -Xcc -mabi=ilp32 -pch-output-dir /tmp -Xfrontend -enable-single-module-llvm-emission