File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,7 @@ public void Setup(Driver driver)
162
162
if ( abi == CppAbi . Microsoft )
163
163
parserOptions . MicrosoftMode = true ;
164
164
165
- if ( triple . Contains ( "apple" ) )
166
- SetupMacOptions ( parserOptions ) ;
165
+ parserOptions . Setup ( ) ;
167
166
168
167
if ( triple . Contains ( "linux" ) )
169
168
SetupLinuxOptions ( parserOptions ) ;
@@ -204,24 +203,6 @@ private void SetupLinuxOptions(ParserOptions parserOptions)
204
203
parserOptions . AddDefines ( "_GLIBCXX_USE_CXX11_ABI=" + ( options . Cpp11ABI ? "1" : "0" ) ) ;
205
204
}
206
205
207
- private static void SetupMacOptions ( ParserOptions options )
208
- {
209
- options . MicrosoftMode = false ;
210
- options . NoBuiltinIncludes = true ;
211
-
212
- if ( Platform . IsMacOS )
213
- {
214
- var headersPaths = new List < string > {
215
- "/usr/include"
216
- } ;
217
-
218
- foreach ( var header in headersPaths )
219
- options . AddSystemIncludeDirs ( header ) ;
220
- }
221
-
222
- options . AddArguments ( "-stdlib=libc++" ) ;
223
- }
224
-
225
206
public void SetupPasses ( Driver driver )
226
207
{
227
208
driver . Context . TranslationUnitPasses . AddPass ( new FunctionToInstanceMethodPass ( ) ) ;
You can’t perform that action at this time.
0 commit comments