зеркало из https://github.com/microsoft/clang-1.git
Don't run clang on .s files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1e6d14fdd2
Коммит
bfd6a3fbc1
|
@ -122,6 +122,8 @@ def inferlanguage(extension):
|
|||
return "objective-c"
|
||||
elif extension == "mi":
|
||||
return "objective-c-cpp-output"
|
||||
elif extention == "s":
|
||||
return "skip"
|
||||
else:
|
||||
return "unknown"
|
||||
|
||||
|
@ -265,6 +267,9 @@ def main(args):
|
|||
for i, file in enumerate(files):
|
||||
if not language:
|
||||
language = inferlanguage(extension(file))
|
||||
if language == "skip":
|
||||
continue
|
||||
|
||||
if save_temps and action != "compile":
|
||||
# Need a temporary output file
|
||||
coutput = changeextension(file, "o");
|
||||
|
|
Загрузка…
Ссылка в новой задаче