[compiler-rt] Add cmake option to enable/disable searching PATH for symbolizer (PR #129012)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 27 16:08:02 PST 2025


================
@@ -830,6 +830,13 @@ pythonize_bool(COMPILER_RT_TEST_USE_LLD)
 option(COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER "Build Compiler RT linked with in LLVM symbolizer" OFF)
 mark_as_advanced(COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER)
 
+option(SANITIZER_DISABLE_SYMBOLIZER_PATH_SEARCH "Disable searching for external symbolizer in $PATH" OFF)
+mark_as_advanced(SANITIZER_DISABLE_SYMBOLIZER_PATH_SEARCH)
+
+if (SANITIZER_DISABLE_SYMBOLIZER_PATH_SEARCH)
+    add_compile_definitions(SANITIZER_DISABLE_SYMBOLIZER_PATH_SEARCH)
----------------
hubert-reinterpretcast wrote:

Nit: Indentation of 2 spaces appears to be the norm in this file.
```suggestion
  add_compile_definitions(SANITIZER_DISABLE_SYMBOLIZER_PATH_SEARCH)
```

https://github.com/llvm/llvm-project/pull/129012


More information about the llvm-commits mailing list