[clang] 98223f7 - [Fuchsia] Use -ffile-prefix-map
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 19 15:14:29 PDT 2020
Author: Petr Hosek
Date: 2020-03-19T15:14:15-07:00
New Revision: 98223f7931f263a38435c51c026d7dcd9bf11a68
URL: https://github.com/llvm/llvm-project/commit/98223f7931f263a38435c51c026d7dcd9bf11a68
DIFF: https://github.com/llvm/llvm-project/commit/98223f7931f263a38435c51c026d7dcd9bf11a68.diff
LOG: [Fuchsia] Use -ffile-prefix-map
This makes toolchain independent of the path it was built in by
rewriting all absolute paths embedded in sources and debug info
into relative ones.
Differential Revision: https://reviews.llvm.org/D76189
Added:
Modified:
clang/cmake/caches/Fuchsia-stage2.cmake
Removed:
################################################################################
diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 7733e55ab229..e2be68be2284 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -16,7 +16,7 @@ set(LLVM_ENABLE_ZLIB ON CACHE BOOL "")
set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "")
set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "")
set(LLVM_INCLUDE_GO_TESTS OFF CACHE BOOL "")
-set(LLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO ON CACHE BOOL "")
+set(LLVM_USE_RELATIVE_PATHS_IN_FILES ON CACHE BOOL "")
set(CLANG_DEFAULT_CXX_STDLIB libc++ CACHE STRING "")
if(NOT APPLE)
More information about the cfe-commits
mailing list