Fixup for my last commit (better check for Clang)

This commit is contained in:
Jonathan Schleifer 2015-11-08 00:37:13 +01:00
parent 7406866340
commit f10b49ed41
No known key found for this signature in database
GPG Key ID: 33E61C63EB4AE7B5

View File

@ -353,6 +353,10 @@ rule CreateAsmStructOffsetsHeader header : source
flags += -Wno-invalid-offsetof ;
# TODO: Rather get rid of the respective offsetof() instances.
if $(HAIKU_CC_IS_CLANG_$(TARGET_PACKAGING_ARCH)) = 1 {
flags += -no-integrated-as ;
}
# locate object, search for source, and set on target variables
Depends $(header) : $(source) $(PLATFORM) ;
@ -371,10 +375,6 @@ rule CreateAsmStructOffsetsHeader header : source
[ FSysIncludes $(sysHeaders) : $(systemIncludesOption) ] ;
CCDEFS on $(header) = [ FDefines $(defines) ] ;
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
C++FLAGS on $(header) += -no-integrated-as ;
}
CreateAsmStructOffsetsHeader1 $(header) : $(source) ;
}