Index: lib/Driver/Tools.cpp |
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp |
index dedeb687ce739fdfb4323160a6dca94a31f40ee5..f4f7c4e1d36c937ab54a185d76b6fc53721683fb 100644 |
--- a/lib/Driver/Tools.cpp |
+++ b/lib/Driver/Tools.cpp |
@@ -1770,7 +1770,10 @@ void Clang::AddLe32TargetArgs(const ArgList &Args, |
ArgStringList &CmdArgs) const { |
Args.ClaimAllArgs(options::OPT_emit_obj); |
- CmdArgs.push_back("-fno-gnu-inline-asm"); |
+ // -fno-gnu-inline-asm is default. |
+ if (!Args.hasFlag(options::OPT_fgnu_inline_asm, |
+ options::OPT_fno_gnu_inline_asm, false)) |
+ CmdArgs.push_back("-fno-gnu-inline-asm"); |
} |
// Decode AArch64 features from string like +[no]featureA+[no]featureB+... |