Skip to content

Commit

Permalink
support ObjC weak references for fastbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuang-i committed Oct 10, 2023
1 parent e4486bb commit 26e8401
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 @@ -45,6 +45,7 @@ public abstract partial class BaseApplePlatform
+ ' [cmdLineOptions.WarningReturnType]'
+ ' [cmdLineOptions.RuntimeTypeInfo]'
+ ' [cmdLineOptions.ClangEnableObjC_ARC]'
+ ' [cmdLineOptions.ClangEnableObjC_Weak]'
+ ' [cmdLineOptions.CppExceptions]'
+ ' [cmdLineOptions.ObjCExceptions]'
+ ' [cmdLineOptions.ObjCARCExceptions]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ public virtual void SelectCompilerOptions(IGenerationContext context)
);

context.SelectOption(
Options.Option(Options.XCode.Compiler.ObjCWeakReferences.Disable, () => options["ObjCWeakReferences"] = "NO"),
Options.Option(Options.XCode.Compiler.ObjCWeakReferences.Enable, () => options["ObjCWeakReferences"] = "YES")
Options.Option(Options.XCode.Compiler.ObjCWeakReferences.Disable, () => { options["ObjCWeakReferences"] = "NO"; cmdLineOptions["ClangEnableObjC_Weak"] = FileGeneratorUtilities.RemoveLineTag; }),
Options.Option(Options.XCode.Compiler.ObjCWeakReferences.Enable, () => { options["ObjCWeakReferences"] = "YES"; cmdLineOptions["ClangEnableObjC_Weak"] = "-fobjc-weak"; })
);

context.SelectOption(
Expand Down

0 comments on commit 26e8401

Please sign in to comment.