[NTOS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 9 Sep 2014 12:28:48 +0000 (12:28 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 9 Sep 2014 12:28:48 +0000 (12:28 +0000)
* Fall back to gas with some source files until http://llvm.org/bugs/show_bug.cgi?id=19027 is fixed.
CORE-8516

svn path=/trunk/; revision=64088

reactos/ntoskrnl/ntos.cmake

index e42a2d9..56585b7 100644 (file)
@@ -422,3 +422,12 @@ else() # _WINKD_
     endif()
 
 endif()
     endif()
 
 endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+    #FIXME: http://llvm.org/bugs/show_bug.cgi?id=19027
+    set_property(SOURCE
+        ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/cpu.c
+        ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/kiinit.c
+        ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/traphdlr.c
+        APPEND_STRING PROPERTY COMPILE_FLAGS " -no-integrated-as")
+endif()