[compiler-rt] r256947 - [compiler-rt] Fix empty translation unit warning

Nathan Slingerland via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 08:55:22 PST 2016


Author: slingn
Date: Wed Jan  6 10:55:21 2016
New Revision: 256947

URL: http://llvm.org/viewvc/llvm-project?rev=256947&view=rev
Log:
[compiler-rt] Fix empty translation unit warning

Change to not compile in WindowsMMap.c on anything except WIN32.

Modified:
    compiler-rt/trunk/lib/profile/CMakeLists.txt

Modified: compiler-rt/trunk/lib/profile/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/CMakeLists.txt?rev=256947&r1=256946&r2=256947&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt Wed Jan  6 10:55:21 2016
@@ -35,8 +35,11 @@ set(PROFILE_SOURCES
   InstrProfilingPlatformLinux.c
   InstrProfilingPlatformOther.c
   InstrProfilingRuntime.cc
-  InstrProfilingUtil.c
-  WindowsMMap.c)
+  InstrProfilingUtil.c)
+
+if(WIN32)
+    list(APPEND PROFILE_SOURCES WindowsMMap.c)
+endif()
 
 if(UNIX)
  set(EXTRA_FLAGS




More information about the llvm-commits mailing list