Skip to content

Commit

Permalink
Merge branch 'xcode-fastbuild-support-rtti' into 'main'
Browse files Browse the repository at this point in the history
support set RTTI compiler option for xcode fastbuild

See merge request Sharpmake/sharpmake!444
  • Loading branch information
jspelletier committed Sep 1, 2023
2 parents c7fe03d + 6eec5f3 commit 3df5efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public abstract partial class BaseApplePlatform
+ ' [cmdLineOptions.SDKRoot]'
+ ' [cmdLineOptions.CppLanguageStd]'
+ ' [cmdLineOptions.CLanguageStd]'
+ ' [cmdLineOptions.RuntimeTypeInfo]'
+ ' [cmdLineOptions.ClangEnableObjC_ARC]'
";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,8 @@ public virtual void SelectCompilerOptions(IGenerationContext context)
);

context.SelectOption(
Options.Option(Options.XCode.Compiler.RTTI.Disable, () => { options["RuntimeTypeInfo"] = "NO"; }),
Options.Option(Options.XCode.Compiler.RTTI.Enable, () => { options["RuntimeTypeInfo"] = "YES"; })
Options.Option(Options.XCode.Compiler.RTTI.Disable, () => { options["RuntimeTypeInfo"] = "NO"; cmdLineOptions["RuntimeTypeInfo"] = "-fno-rtti"; }),
Options.Option(Options.XCode.Compiler.RTTI.Enable, () => { options["RuntimeTypeInfo"] = "YES"; cmdLineOptions["RuntimeTypeInfo"] = "-frtti"; })
);

context.SelectOption(
Expand Down

0 comments on commit 3df5efb

Please sign in to comment.