[polly] r244363 - Do not use -fvisibility option with Visual C

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 15:16:45 PDT 2015


Author: meinersbur
Date: Fri Aug  7 17:16:44 2015
New Revision: 244363

URL: http://llvm.org/viewvc/llvm-project?rev=244363&view=rev
Log:
Do not use -fvisibility option with Visual C

It doesn't know the option and prints a warning. 


Modified:
    polly/trunk/CMakeLists.txt

Modified: polly/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/CMakeLists.txt?rev=244363&r1=244362&r2=244363&view=diff
==============================================================================
--- polly/trunk/CMakeLists.txt (original)
+++ polly/trunk/CMakeLists.txt Fri Aug  7 17:16:44 2015
@@ -93,7 +93,9 @@ endif ()
 #
 # We also disable all warnings, as these should be fixed upstream. There is
 # no value in reporting them here.
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -w")
+if (NOT MSVC)
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -w")
+endif ()
 
 # Add path for custom modules
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${POLLY_SOURCE_DIR}/cmake")




More information about the llvm-commits mailing list