Enable use of Clang's integrated assembler.
This commit is contained in:
parent
ca57e33abb
commit
c44472c541
@ -474,12 +474,9 @@ rule ArchitectureSetupWarnings architecture
|
|||||||
}
|
}
|
||||||
|
|
||||||
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
|
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
|
||||||
# We need -integrated-as, as otherwise Clang uses GCC as assembler and
|
|
||||||
# passes -fheinous-gnu-extensions to GCC, which GCC does not understand
|
|
||||||
# then errors out.
|
|
||||||
AppendToConfigVar CCFLAGS :
|
AppendToConfigVar CCFLAGS :
|
||||||
HAIKU_TOP src system libroot posix glibc :
|
HAIKU_TOP src system libroot posix glibc :
|
||||||
-integrated-as -fgnu89-inline -fheinous-gnu-extensions : global ;
|
-fgnu89-inline -fheinous-gnu-extensions : global ;
|
||||||
}
|
}
|
||||||
|
|
||||||
EnableWerror src add-ons accelerants ;
|
EnableWerror src add-ons accelerants ;
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -908,7 +908,7 @@ else
|
|||||||
|
|
||||||
# prepare gcc settings and get the actual target architecture
|
# prepare gcc settings and get the actual target architecture
|
||||||
if [ $useClang = 1 ]; then
|
if [ $useClang = 1 ]; then
|
||||||
gcc="$HAIKU_clang -target ${targetMachine} -no-integrated-as"
|
gcc="$HAIKU_clang -target ${targetMachine}"
|
||||||
if [ ! -z "${crossToolsPrefix}" ]; then
|
if [ ! -z "${crossToolsPrefix}" ]; then
|
||||||
gcc="$gcc -B ${crossToolsPrefix}"
|
gcc="$gcc -B ${crossToolsPrefix}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user