BTW, ARC looks a bit like what rust does, should be interesting to see
how it was implemented.
-------- Original Message --------
Subject: Re: [cfe-dev] Detecting ARC via #if(def)?
Date: Mon, 13 Jun 2011 09:29:10 -0700
From: Chris Lattner <[email protected]>
To: Eli Friedman <[email protected]>
CC: [email protected]
On Jun 13, 2011, at 9:14 AM, Eli Friedman wrote:
On Mon, Jun 13, 2011 at 8:45 AM, marc hoffman <[email protected]> wrote:
i'm hoping this is not NDA-covered, but with LLV/Clang itself being open
source i assume it's not:
at WWDC i was told there is a functionality in clang/LLVM to check for
availability of specific features in general, and for whether the current
code is being compiled with ARC or not, specifically, via an #if(def) - the
goal being ro write a piece of code that can compile with and w/o ARC, by
#if(def)ing a handful of retain/release calls.
i was told this was well documented in the clang docs, but i've been unable
to find anything regarding this - is anyone here aware of this featyre (and
of the option to check for that represents ARC) and could point me into the
right direction?
ARC hasn't landed in the public repository yet.
FYI, ETA is ~Wednesday.
-Chris
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev