Skip to content

Commit

Permalink
Merge branch 'xcode-fastbuild-support-objc-weak' into 'main'
Browse files Browse the repository at this point in the history
support ObjC weak references for fastbuild

See merge request Sharpmake/sharpmake!466
  • Loading branch information
jspelletier committed Oct 13, 2023
2 parents 1d77923 + 26e8401 commit aab741a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
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 aab741a

Please sign in to comment.