We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents caca83f + 2e765d0 commit 00e1cfaCopy full SHA for 00e1cfa
cmake/KLLVMCompilerFlags.cmake
@@ -41,3 +41,10 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
41
# Auto-generated header path
42
set(KLLVM_AUTOGEN_INCLUDE_DIR ${CMAKE_BINARY_DIR}/include)
43
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
@@ -39,4 +39,6 @@
39
#define BACKEND_TARGET_DATALAYOUT TOSTRING(@BACKEND_TARGET_DATALAYOUT@)
40
#define BACKEND_TARGET_TRIPLE TOSTRING(@BACKEND_TARGET_TRIPLE@)
+#define K_LLVM_STACK_MAPS @K_LLVM_STACK_MAPS_FLAG@
#endif
0 commit comments