<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 16, 2015 at 8:34 AM, Kuba Brecka <span dir="ltr"><<a href="mailto:kuba.brecka@gmail.com" target="_blank">kuba.brecka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">> ASan requiring 10.7 is fine for us.<br>
><br>
> The problem is that we're only doing a single build of Clang and<br>
> compiler-rt, and we use that for both non-asan and asan builds of<br>
> Chrome. If I build compiler-rt with MACOSX_DEPLOYMENT_TARGET=10.7, are<br>
> you saying that the non-asan parts of compiler-rt will still work on<br>
> 10.6 machines? Because that's all I need.<br>
><br>
> Apologies for the confusion here. I don't really know much about<br>
> compiler-rt or Mac.<br>
<br>
</span>I think you should be fine with what you suggested before, i.e. not setting MACOSX_DEPLOYMENT_TARGET at all.  ASan will get built with support for 10.7+ no matter what your OS version is.  The non-sanitizer parts (builtins) only build into a .a archive, so the deployment target doesn’t (shouldn’t) matter here.<br></blockquote><div><br></div><div>clang looks at that env var and might use it for things other than setting the min OS version in the mach-o output file. Look e.g. for isMacosxVersionLT() in clang's lib, this affects abi things like ObjC calling conventions and whatnot. We do need to set this while compiling…anything.</div><div><br></div><div>(resending from @chromium, sorry about the dupe mail) </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
Kuba<br>
<br>
</font></span></blockquote></div><br></div></div>