Index: compiler-rt/trunk/lib/profile/CMakeLists.txt =================================================================== --- compiler-rt/trunk/lib/profile/CMakeLists.txt +++ compiler-rt/trunk/lib/profile/CMakeLists.txt @@ -82,6 +82,7 @@ STATIC OS ${PROFILE_SUPPORTED_OS} ARCHS ${PROFILE_SUPPORTED_ARCH} + CFLAGS ${EXTRA_FLAGS} SOURCES ${PROFILE_SOURCES} PARENT_TARGET profile) else() Index: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c =================================================================== --- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c +++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.c @@ -16,9 +16,7 @@ #else #include #include -#if defined(__linux__) #include -#endif #include #include #endif