Skip to content

Commit 1f7ce1f

Browse files
committed
Add a few more missing flags reported by Marko Dimjašević
Apparently some of these flags come up in Android builds. I think there are a few more relating to cross compilation to handle still.
1 parent 23e4d01 commit 1f7ce1f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

driver/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
8888
'-integrated-as' : (0, ArgumentListFilter.compileUnaryCallback),
8989
#iam: gcc uses this in both compile and link, but clang only in compile
9090
'-pthread' : (0, ArgumentListFilter.compileUnaryCallback),
91+
# I think this is a compiler search path flag. It is
92+
# clang only, so I don't think it counts as a separate CPP
93+
# flag. Android uses this flag with its clang builds.
94+
'-nostdlibinc': (0, ArgumentListFilter.compileUnaryCallback),
9195

9296
#iam: arm stuff
9397
'-mno-omit-leaf-frame-pointer' : (0, ArgumentListFilter.compileUnaryCallback),
@@ -108,8 +112,10 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
108112
'-msoft-float' : (0, ArgumentListFilter.compileUnaryCallback),
109113
'-m3dnow' : (0, ArgumentListFilter.compileUnaryCallback),
110114
'-mno-3dnow' : (0, ArgumentListFilter.compileUnaryCallback),
115+
'-m32': (0, ArgumentListFilter.compileUnaryCallback),
116+
'-m64': (0, ArgumentListFilter.compileUnaryCallback),
117+
'-mstackrealign': (0, ArgumentListFilter.compileUnaryCallback),
111118

112-
113119
# Preprocessor assertion
114120
'-A' : (1, ArgumentListFilter.compileBinaryCallback),
115121
'-D' : (1, ArgumentListFilter.compileBinaryCallback),

0 commit comments

Comments
 (0)