File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -642,6 +642,7 @@ opt_nosave optimize-cxx 1 "build optimized C++ code"
642642opt_nosave optimize-llvm 1 " build optimized LLVM"
643643opt_nosave llvm-assertions 0 " build LLVM with assertions"
644644opt_nosave debug-assertions 0 " build with debugging assertions"
645+ opt_nosave llvm-release-debuginfo 0 " build LLVM with debugger metadata"
645646opt_nosave debuginfo 0 " build with debugger metadata"
646647opt_nosave debuginfo-lines 0 " build with line number debugger metadata"
647648opt_nosave debug-jemalloc 0 " build jemalloc with --enable-debug --enable-fill"
@@ -778,6 +779,7 @@ if [ -n "$CFG_DISABLE_OPTIMIZE_CXX" ]; then putvar CFG_DISABLE_OPTIMIZE_CXX; fi
778779if [ -n " $CFG_DISABLE_OPTIMIZE_LLVM " ]; then putvar CFG_DISABLE_OPTIMIZE_LLVM; fi
779780if [ -n " $CFG_ENABLE_LLVM_ASSERTIONS " ]; then putvar CFG_ENABLE_LLVM_ASSERTIONS; fi
780781if [ -n " $CFG_ENABLE_DEBUG_ASSERTIONS " ]; then putvar CFG_ENABLE_DEBUG_ASSERTIONS; fi
782+ if [ -n " $CFG_ENABLE_LLVM_RELEASE_DEBUGINFO " ]; then putvar CFG_ENABLE_LLVM_RELEASE_DEBUGINFO; fi
781783if [ -n " $CFG_ENABLE_DEBUGINFO " ]; then putvar CFG_ENABLE_DEBUGINFO; fi
782784if [ -n " $CFG_ENABLE_DEBUGINFO_LINES " ]; then putvar CFG_ENABLE_DEBUGINFO_LINES; fi
783785if [ -n " $CFG_ENABLE_DEBUG_JEMALLOC " ]; then putvar CFG_ENABLE_DEBUG_JEMALLOC; fi
17721774
17731775 if [ -n " $CFG_DISABLE_OPTIMIZE_LLVM " ]; then
17741776 CMAKE_ARGS=" $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug"
1777+ elif [ -n " $CFG_ENABLE_LLVM_RELEASE_DEBUGINFO " ]; then
1778+ CMAKE_ARGS=" $CMAKE_ARGS -DCMAKE_BUILD_TYPE=RelWithDebInfo"
17751779 else
17761780 CMAKE_ARGS=" $CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release"
17771781 fi
Original file line number Diff line number Diff line change 2121
2222ifdef CFG_DISABLE_OPTIMIZE_LLVM
2323LLVM_BUILD_CONFIG_MODE := Debug
24+ else ifdef CFG_ENABLE_LLVM_RELEASE_DEBUGINFO
25+ LLVM_BUILD_CONFIG_MODE := RelWithDebInfo
2426else
2527LLVM_BUILD_CONFIG_MODE := Release
2628endif
Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ impl Config {
339339 ( "COMPILER_DOCS" , self . compiler_docs) ,
340340 ( "DOCS" , self . docs) ,
341341 ( "LLVM_ASSERTIONS" , self . llvm_assertions) ,
342+ ( "LLVM_RELEASE_DEBUGINFO" , self . llvm_release_debuginfo) ,
342343 ( "OPTIMIZE_LLVM" , self . llvm_optimize) ,
343344 ( "LLVM_VERSION_CHECK" , self . llvm_version_check) ,
344345 ( "LLVM_STATIC_STDCPP" , self . llvm_static_stdcpp) ,
You can’t perform that action at this time.
0 commit comments