Skip to content

Commit 7be0cea

Browse files
committed
JIT on esp32: fix CMakeLists
Signed-off-by: Paul Guyot <[email protected]>
1 parent ca9ad94 commit 7be0cea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/platforms/esp32/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ endif()
5151
# On Esp32, select is run in a loop in a dedicated task
5252
set(AVM_SELECT_IN_TASK ON)
5353

54+
# By default, JIT is disabled
55+
set(AVM_DISABLE_JIT OFF)
56+
57+
project(atomvm-esp32)
58+
5459
# JIT is only supported on RISC-V targets (ESP32-C2, ESP32-C3, ESP32-C6, ESP32-H2, ESP32-P4)
5560
# Configuration comes from idf.py menuconfig (KConfig), not CMake options
5661
if(CONFIG_JIT_ENABLED)
@@ -67,8 +72,6 @@ else()
6772
message(STATUS "JIT compilation disabled")
6873
endif()
6974

70-
project(atomvm-esp32)
71-
7275
# esp-idf does not use compile_feature but instead sets version in
7376
# c_compile_options
7477
# Ensure project is compiled with at least C11

0 commit comments

Comments
 (0)