[PATCH] D24320: [compiler-rt] Don't use -fPIC when building for Windows

Francis Ricci via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 09:05:52 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL280953: [compiler-rt] Don't use -fPIC when building for Windows (authored by fjricci).

Changed prior to commit:
  https://reviews.llvm.org/D24320?vs=70609&id=70712#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24320

Files:
  compiler-rt/trunk/CMakeLists.txt

Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/CMakeLists.txt
@@ -129,7 +129,9 @@
 endif()
 
 # Provide some common commmandline flags for Sanitizer runtimes.
-append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC SANITIZER_COMMON_CFLAGS)
+if(NOT WIN32)
+  append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC SANITIZER_COMMON_CFLAGS)
+endif()
 append_list_if(COMPILER_RT_HAS_FNO_BUILTIN_FLAG -fno-builtin SANITIZER_COMMON_CFLAGS)
 append_list_if(COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG -fno-exceptions SANITIZER_COMMON_CFLAGS)
 if(NOT COMPILER_RT_DEBUG)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24320.70712.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160908/8a02cf65/attachment.bin>


More information about the llvm-commits mailing list