File tree Expand file tree Collapse file tree 1 file changed +30
-34
lines changed Expand file tree Collapse file tree 1 file changed +30
-34
lines changed Original file line number Diff line number Diff line change @@ -78,50 +78,46 @@ def main():
78
78
79
79
# A hard-coded list of options which expect a parameter
80
80
is_arg_param = arg in [
81
- "-o" ,
82
- "-target" ,
83
- "-isysroot" ,
84
- "-emit-sil" ,
85
- "-emit-ir" ,
86
- "-module-name" ,
87
- "-framework" ,
88
- "-Xlinker" ,
89
- "-arch" ,
81
+ "--sdk" ,
82
+ "--toolchain" ,
90
83
"-D" ,
91
- "-sdk" ,
92
- "-module-cache-path" ,
93
84
"-F" ,
94
- "-output-file-map" ,
95
- "-emit-module-path" ,
96
- "-Xcc" ,
97
85
"-I" ,
98
- "-iquote" ,
99
- "-emit-objc-header-path" ,
100
- "-Xfrontend" ,
101
- "-filelist" ,
102
- "-num-threads" ,
103
- "-Xclang" ,
104
- "-x" ,
105
86
"-L" ,
106
- "-rpath" ,
107
- "-macosx_version_min" ,
108
- "-syslibroot" ,
87
+ "-Xcc" ,
88
+ "-Xclang" ,
89
+ "-Xfrontend" ,
90
+ "-Xlinker" ,
91
+ "-Xllvm" ,
109
92
"-add_ast_path" ,
93
+ "-arch" ,
94
+ "-emit-ir" ,
95
+ "-emit-sil" ,
96
+ "-filelist" ,
97
+ "-fileno" ,
98
+ "-framework" ,
110
99
"-import-objc-header" ,
111
- "-serialize-diagnostics-path" ,
112
- "-emit-dependencies-path" ,
113
- "-emit-reference-dependencies-path" ,
100
+ "-iquote" ,
101
+ "-isysroot" ,
102
+ "-macosx_version_min" ,
103
+ "-module-link-name" ,
104
+ "-module-name" ,
105
+ "-num-threads" ,
106
+ "-o" ,
107
+ "-output-file-map" ,
114
108
"-primary-file" ,
115
109
"-resource-dir" ,
116
- "--sdk" ,
117
- "--toolchain" ,
118
- "-emit-module-doc-path" ,
119
- "-module-link-name" ,
120
- "-group-info-path" ,
121
- "-fileno" ,
110
+ "-rpath" ,
111
+ "-sdk" ,
122
112
"-swift-version" ,
123
- "-Xllvm" ,
113
+ "-syslibroot" ,
114
+ "-target" ,
115
+ "-target-sdk-version" ,
116
+ "-x" ,
124
117
]
118
+ # Heuristic: options ending in -path expect an argument
119
+ if arg .startswith ("-" ) and arg .endswith ("-path" ):
120
+ is_arg_param = True
125
121
126
122
# Print 2 new lines after each command line
127
123
print ("\n " )
You can’t perform that action at this time.
0 commit comments