Skip to content

Commit

Permalink
Add Xcc flags that fixes crash on ESP32-C3.
Browse files Browse the repository at this point in the history
This fixes apple#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.
  • Loading branch information
cheif committed Jul 10, 2024
1 parent 3799daf commit f6fcccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smart-light/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ target_compile_options(${COMPONENT_LIB} PUBLIC "$<$<COMPILE_LANGUAGE:Swift>: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
Expand Down

0 comments on commit f6fcccb

Please sign in to comment.