summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/Driver/clang.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 160c2523049..2ae1b6ec737 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -322,7 +322,9 @@ static LangKind GetLanguage(const std::string &Filename) {
// assembler: .S
if (Ext == "c")
return langkind_c;
- else if (Ext == "S")
+ else if (Ext == "S" ||
+ // If the compiler is run on a .s file, preprocess it as .S
+ Ext == "s")
return langkind_asm_cpp;
else if (Ext == "i")
return langkind_c_cpp;
OpenPOWER on IntegriCloud