• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I set build configurations in Swift code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I set build configurations in Swift code?


  • Subject: Re: Can I set build configurations in Swift code?
  • From: Chris Lattner <email@hidden>
  • Date: Mon, 07 Jul 2014 21:20:06 -0700

On Jul 7, 2014, at 8:50 PM, Gerriet M. Denkmann <email@hidden> wrote:
> But: I get lots of warnings "Will never be executed" for all OTHER_FLAGs.
> I do NOT want to switch off this warning, as it probably is rather useful.
> But I do much prefer to have code which compiles without warnings.
>
> So: is there a way to define build configurations in code (other than in the Build Settings of Xcode) ?
>
> Or: how else to handle conditionally compiled code in Swift?

Interesting: we don't have a good solution for this at the moment, please file a radar.

-Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Can I set build configurations in Swift code?
      • From: Britt Durbrow <email@hidden>
    • Re: Can I set build configurations in Swift code?
      • From: Britt Durbrow <email@hidden>
References: 
 >Can I set build configurations in Swift code? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Swift crash in dispatch_apply
  • Next by Date: Re: Swift crash in dispatch_apply
  • Previous by thread: Can I set build configurations in Swift code?
  • Next by thread: Re: Can I set build configurations in Swift code?
  • Index(es):
    • Date
    • Thread