Skip to content

Commit 00e1cfa

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents caca83f + 2e765d0 commit 00e1cfa

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cmake/KLLVMCompilerFlags.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
4141
# Auto-generated header path
4242
set(KLLVM_AUTOGEN_INCLUDE_DIR ${CMAKE_BINARY_DIR}/include)
4343
include_directories(${KLLVM_AUTOGEN_INCLUDE_DIR})
44+
45+
option(K_LLVM_STACK_MAPS "Enable stack-map-based GC for the LLVM backend" OFF)
46+
if (K_LLVM_STACK_MAPS)
47+
set(K_LLVM_STACK_MAPS_FLAG "1")
48+
else()
49+
set(K_LLVM_STACK_MAPS_FLAG "0")
50+
endif()

config/macros.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@
3939
#define BACKEND_TARGET_DATALAYOUT TOSTRING(@BACKEND_TARGET_DATALAYOUT@)
4040
#define BACKEND_TARGET_TRIPLE TOSTRING(@BACKEND_TARGET_TRIPLE@)
4141

42+
#define K_LLVM_STACK_MAPS @K_LLVM_STACK_MAPS_FLAG@
43+
4244
#endif

0 commit comments

Comments
 (0)