support clang internal assembler when building for arm as thumb2 code

the clang internal assembler does not accept assembler options passed
via the usual -Wa mechanism, but it does accept -mimplicit-it directly
as an option to the compiler driver.
This commit is contained in:
Rich Felker committed 2018-09-19 01:31:26 -04:00
1 parent 7b3348a98c
commit dffc205918
1 file changed
+1
Vendored
+1
View File
@@ -579,6 +579,7 @@ fi
if test "$ARCH" = "arm" ; then
if trycppif __thumb2__ "$t" ; then
tryflag CFLAGS_AUTO -mimplicit-it=always
tryflag CFLAGS_AUTO -Wa,-mimplicit-it=always
tryflag CFLAGS_AUTO -Wa,-mthumb
fi