aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 160c252304..2ae1b6ec73 100644
--- a/Driver/clang.cpp
+++ b/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;