<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 11, 2014 at 6:48 PM, Saleem Abdulrasool <span dir="ltr"><<a href="mailto:compnerd@compnerd.org" target="_blank">compnerd@compnerd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">On Tue, Nov 11, 2014 at 12:44 PM, Bob Wilson <span dir="ltr"><<a href="mailto:bob.wilson@apple.com" target="_blank">bob.wilson@apple.com</a>></span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a reason to keep the stub SDK for Linux? I don’t know if anyone is relying on that, and I can’t test any changes, but now that the stub SDK for Darwin is gone, it might also make sense to remove the one for Linux.<br></blockquote><div><br></div></span><div>I made a previous change that removed the need for the stub SDK for Linux a while ago for the builtins.  Im not sure if anyone is depending on it for the sanitizers.  If not, I am more than happy to remove it.</div></div></div></div></blockquote><div><br></div><div>No, sanitizers don't depend on SDK. I'm also fine with removing it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> On Nov 10, 2014, at 11:38 AM, Bob Wilson <<a href="mailto:bob.wilson@apple.com" target="_blank">bob.wilson@apple.com</a>> wrote:<br>
><br>
> Author: bwilson<br>
> Date: Mon Nov 10 13:38:15 2014<br>
> New Revision: 221621<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=221621&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=221621&view=rev</a><br>
> Log:<br>
> Build Darwin libclang_rt libraries against real SDKs.<br>
><br>
> The minimal fake SDK was very useful in allowing us to build for all<br>
> Darwin platforms without needing access to the real SDKs, but it did<br>
> not support building any of the sanitizer runtimes. It's important to<br>
> fix that. As a consequence, if you don't have the iOS SDKs installed,<br>
> we will now skip building the iOS-specific libclang_rt libraries.<br>
> rdar://problem/18825276<br>
><br>
> Removed:<br>
>    compiler-rt/trunk/SDKs/darwin/README.txt<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/errno.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/fcntl.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/inttypes.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/limits.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/stdio.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/stdlib.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/string.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/sys/fcntl.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/sys/mman.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/sys/stat.h<br>
>    compiler-rt/trunk/SDKs/darwin/usr/include/sys/types.h<br>
> Modified:<br>
>    compiler-rt/trunk/CMakeLists.txt<br>
>    compiler-rt/trunk/make/platform/<a href="http://clang_darwin.mk" target="_blank">clang_darwin.mk</a><br>
><br>
> Modified: compiler-rt/trunk/CMakeLists.txt<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=221621&r1=221620&r2=221621&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=221621&r1=221620&r2=221621&view=diff</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/CMakeLists.txt (original)<br>
> +++ compiler-rt/trunk/CMakeLists.txt Mon Nov 10 13:38:15 2014<br>
> @@ -160,7 +160,6 @@ include(CompilerRTUtils)<br>
> set(COMPILER_RT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})<br>
> set(COMPILER_RT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})<br>
> # Setup custom SDK sysroots.<br>
> -set(COMPILER_RT_DARWIN_SDK_SYSROOT ${COMPILER_RT_SOURCE_DIR}/SDKs/darwin)<br>
> set(COMPILER_RT_LINUX_SDK_SYSROOT ${COMPILER_RT_SOURCE_DIR}/SDKs/linux)<br>
><br>
> set(COMPILER_RT_EXTRA_ANDROID_HEADERS ${COMPILER_RT_SOURCE_DIR}/android/include)<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/README.txt<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/README.txt?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/README.txt?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/README.txt (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/README.txt (removed)<br>
> @@ -1,3 +0,0 @@<br>
> -The Darwin platforms are all similar enough we roll them into one SDK, and use<br>
> -preprocessor tricks to get the right definitions for the few things which<br>
> -diverge between OS X and iOS.<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/errno.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/errno.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/errno.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/errno.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/errno.h (removed)<br>
> @@ -1,17 +0,0 @@<br>
> -/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#include <sys/errno.h><br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/fcntl.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/fcntl.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/fcntl.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/fcntl.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/fcntl.h (removed)<br>
> @@ -1,17 +0,0 @@<br>
> -/* ===-- fcntl.h - stub SDK header for compiler-rt --------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#include <sys/fcntl.h><br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/inttypes.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/inttypes.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/inttypes.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/inttypes.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/inttypes.h (removed)<br>
> @@ -1,86 +0,0 @@<br>
> -/* ===-- inttypes.h - stub SDK header for compiler-rt -----------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __INTTYPES_H__<br>
> -#define __INTTYPES_H__<br>
> -<br>
> -#if __WORDSIZE == 64<br>
> -#define __INTTYPE_PRI64__ "l"<br>
> -#else<br>
> -#define __INTTYPE_PRI64__ "ll"<br>
> -#endif<br>
> -<br>
> -#define PRId8  "hhd"<br>
> -#define PRId16 "hd"<br>
> -#define PRId32 "d"<br>
> -#define PRId64 __INTTYPE_PRI64__ "d"<br>
> -<br>
> -#define PRIi8  "hhi"<br>
> -#define PRIi16 "hi"<br>
> -#define PRIi32 "i"<br>
> -#define PRIi64 __INTTYPE_PRI64__ "i"<br>
> -<br>
> -#define PRIo8  "hho"<br>
> -#define PRIo16 "ho"<br>
> -#define PRIo32 "o"<br>
> -#define PRIo64 __INTTYPE_PRI64__ "o"<br>
> -<br>
> -#define PRIu8  "hhu"<br>
> -#define PRIu16 "hu"<br>
> -#define PRIu32 "u"<br>
> -#define PRIu64 __INTTYPE_PRI64__ "u"<br>
> -<br>
> -#define PRIx8  "hhx"<br>
> -#define PRIx16 "hx"<br>
> -#define PRIx32 "x"<br>
> -#define PRIx64 __INTTYPE_PRI64__ "x"<br>
> -<br>
> -#define PRIX8  "hhX"<br>
> -#define PRIX16 "hX"<br>
> -#define PRIX32 "X"<br>
> -#define PRIX64 __INTTYPE_PRI64__ "X"<br>
> -<br>
> -#define SCNd8  "hhd"<br>
> -#define SCNd16 "hd"<br>
> -#define SCNd32 "d"<br>
> -#define SCNd64 __INTTYPE_PRI64__ "d"<br>
> -<br>
> -#define SCNi8  "hhi"<br>
> -#define SCNi16 "hi"<br>
> -#define SCNi32 "i"<br>
> -#define SCNi64 __INTTYPE_PRI64__ "i"<br>
> -<br>
> -#define SCNo8  "hho"<br>
> -#define SCNo16 "ho"<br>
> -#define SCNo32 "o"<br>
> -#define SCNo64 __INTTYPE_PRI64__ "o"<br>
> -<br>
> -#define SCNu8  "hhu"<br>
> -#define SCNu16 "hu"<br>
> -#define SCNu32 "u"<br>
> -#define SCNu64 __INTTYPE_PRI64__ "u"<br>
> -<br>
> -#define SCNx8  "hhx"<br>
> -#define SCNx16 "hx"<br>
> -#define SCNx32 "x"<br>
> -#define SCNx64 __INTTYPE_PRI64__ "x"<br>
> -<br>
> -#define SCNX8  "hhX"<br>
> -#define SCNX16 "hX"<br>
> -#define SCNX32 "X"<br>
> -#define SCNX64 __INTTYPE_PRI64__ "X"<br>
> -<br>
> -#endif  /* __INTTYPES_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/limits.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/limits.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/limits.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/limits.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/limits.h (removed)<br>
> @@ -1,23 +0,0 @@<br>
> -/* ===-- limits.h - stub SDK header for compiler-rt -------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __LIMITS_H__<br>
> -#define __LIMITS_H__<br>
> -<br>
> -/* This is only here as a landing pad for the include_next from the compiler's<br>
> -   built-in limits.h. */<br>
> -<br>
> -#endif /* __LIMITS_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/stdio.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/stdio.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/stdio.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/stdio.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/stdio.h (removed)<br>
> @@ -1,90 +0,0 @@<br>
> -/* ===-- stdio.h - stub SDK header for compiler-rt --------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __STDIO_H__<br>
> -#define __STDIO_H__<br>
> -<br>
> -#if defined(__cplusplus)<br>
> -extern "C" {<br>
> -#endif<br>
> -<br>
> -typedef struct __sFILE FILE;<br>
> -typedef __SIZE_TYPE__ size_t;<br>
> -<br>
> -/* Determine the appropriate fdopen, fopen(), and fwrite() functions. */<br>
> -#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)<br>
> -#  if defined(__i386)<br>
> -#    define __FDOPEN_NAME  "_fdopen$UNIX2003"<br>
> -#    define __FOPEN_NAME "_fopen$UNIX2003"<br>
> -#    define __FWRITE_NAME "_fwrite$UNIX2003"<br>
> -#  elif defined(__x86_64__)<br>
> -#    define __FDOPEN_NAME  "_fdopen"<br>
> -#    define __FOPEN_NAME "_fopen"<br>
> -#    define __FWRITE_NAME "_fwrite"<br>
> -#  elif defined(__arm) || defined(__arm64)<br>
> -#    define __FDOPEN_NAME  "_fdopen"<br>
> -#    define __FOPEN_NAME "_fopen"<br>
> -#    define __FWRITE_NAME "_fwrite"<br>
> -#  else<br>
> -#    error "unrecognized architecture for targeting OS X"<br>
> -#  endif<br>
> -#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)<br>
> -#  if defined(__i386) || defined (__x86_64)<br>
> -#    define __FDOPEN_NAME  "_fdopen"<br>
> -#    define __FOPEN_NAME "_fopen"<br>
> -#    define __FWRITE_NAME "_fwrite"<br>
> -#  elif defined(__arm) || defined(__arm64)<br>
> -#    define __FDOPEN_NAME  "_fdopen"<br>
> -#    define __FOPEN_NAME "_fopen"<br>
> -#    define __FWRITE_NAME "_fwrite"<br>
> -#  else<br>
> -#    error "unrecognized architecture for targeting iOS"<br>
> -#  endif<br>
> -#else<br>
> -#  error "unrecognized architecture for targeting Darwin"<br>
> -#endif<br>
> -<br>
> -#    define stderr __stderrp<br>
> -extern FILE *__stderrp;<br>
> -<br>
> -#ifndef SEEK_SET<br>
> -#define      SEEK_SET        0       /* set file offset to offset */<br>
> -#endif<br>
> -#ifndef SEEK_CUR<br>
> -#define      SEEK_CUR        1       /* set file offset to current plus offset */<br>
> -#endif<br>
> -#ifndef SEEK_END<br>
> -#define      SEEK_END        2       /* set file offset to EOF plus offset */<br>
> -#endif<br>
> -<br>
> -int fclose(FILE *);<br>
> -int fflush(FILE *);<br>
> -FILE *fopen(const char * __restrict, const char * __restrict) __asm(__FOPEN_NAME);<br>
> -FILE *fdopen(int, const char *) __asm(__FDOPEN_NAME);<br>
> -int fprintf(FILE * __restrict, const char * __restrict, ...);<br>
> -int fputc(int, FILE *);<br>
> -size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict)<br>
> -  __asm(__FWRITE_NAME);<br>
> -size_t fread(void * __restrict, size_t, size_t, FILE * __restrict);<br>
> -long ftell(FILE *);<br>
> -int fseek(FILE *, long, int);<br>
> -int snprintf(char * __restrict, size_t, const char * __restrict, ...);<br>
> -<br>
> -#if defined(__cplusplus)<br>
> -}<br>
> -#endif<br>
> -<br>
> -#endif /* __STDIO_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/stdlib.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/stdlib.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/stdlib.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/stdlib.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/stdlib.h (removed)<br>
> @@ -1,32 +0,0 @@<br>
> -/* ===-- stdlib.h - stub SDK header for compiler-rt -------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __STDLIB_H__<br>
> -#define __STDLIB_H__<br>
> -<br>
> -#define NULL ((void *)0)<br>
> -<br>
> -typedef __SIZE_TYPE__ size_t;<br>
> -<br>
> -void abort(void) __attribute__((__noreturn__));<br>
> -int atexit(void (*)(void));<br>
> -int atoi(const char *);<br>
> -void free(void *);<br>
> -char *getenv(const char *);<br>
> -void *malloc(size_t);<br>
> -void *realloc(void *, size_t);<br>
> -<br>
> -#endif /* __STDLIB_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/string.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/string.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/string.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/string.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/string.h (removed)<br>
> @@ -1,52 +0,0 @@<br>
> -/* ===-- string.h - stub SDK header for compiler-rt -------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __STRING_H__<br>
> -#define __STRING_H__<br>
> -<br>
> -typedef __SIZE_TYPE__ size_t;<br>
> -<br>
> -int memcmp(const void *, const void *, size_t);<br>
> -void *memcpy(void *, const void *, size_t);<br>
> -void *memset(void *, int, size_t);<br>
> -char *strcat(char *, const char *);<br>
> -char *strcpy(char *, const char *);<br>
> -char *strdup(const char *);<br>
> -size_t strlen(const char *);<br>
> -char *strncpy(char *, const char *, size_t);<br>
> -<br>
> -/* Determine the appropriate strerror() function. */<br>
> -#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)<br>
> -#  if defined(__i386)<br>
> -#    define __STRERROR_NAME  "_strerror$UNIX2003"<br>
> -#  elif defined(__x86_64__) || defined(__arm) || defined(__arm64)<br>
> -#    define __STRERROR_NAME  "_strerror"<br>
> -#  else<br>
> -#    error "unrecognized architecture for targeting OS X"<br>
> -#  endif<br>
> -#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)<br>
> -#  if defined(__i386) || defined (__x86_64) || defined(__arm) || defined(__arm64)<br>
> -#    define __STRERROR_NAME  "_strerror"<br>
> -#  else<br>
> -#    error "unrecognized architecture for targeting iOS"<br>
> -#  endif<br>
> -#else<br>
> -#  error "unrecognized architecture for targeting Darwin"<br>
> -#endif<br>
> -<br>
> -char *strerror(int) __asm(__STRERROR_NAME);<br>
> -<br>
> -#endif /* __STRING_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/sys/errno.h (removed)<br>
> @@ -1,31 +0,0 @@<br>
> -/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef _SYS_ERRNO_H_<br>
> -#define _SYS_ERRNO_H_<br>
> -<br>
> -#if defined(__cplusplus)<br>
> -extern "C" {<br>
> -#endif<br>
> -<br>
> -extern int *__error(void);<br>
> -#define errno (*__error())<br>
> -<br>
> -#if defined(__cplusplus)<br>
> -}<br>
> -#endif<br>
> -<br>
> -#endif<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/sys/fcntl.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/fcntl.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/fcntl.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/sys/fcntl.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/sys/fcntl.h (removed)<br>
> @@ -1,52 +0,0 @@<br>
> -/* ===-- fcntl.h - stub SDK header for compiler-rt --------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef _SYS_FCNTL_H_<br>
> -#define _SYS_FCNTL_H_<br>
> -<br>
> -/* Determine the appropriate open function. */<br>
> -#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)<br>
> -#  if defined(__i386)<br>
> -#    define __OPEN_NAME  "_open$UNIX2003"<br>
> -#  elif defined(__x86_64__)<br>
> -#    define __OPEN_NAME  "_open"<br>
> -#  elif defined(__arm) || defined(__arm64)<br>
> -#    define __OPEN_NAME  "_open"<br>
> -#  else<br>
> -#    error "unrecognized architecture for targeting OS X"<br>
> -#  endif<br>
> -#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)<br>
> -#  if defined(__i386) || defined (__x86_64)<br>
> -#    define __OPEN_NAME  "_open"<br>
> -#  elif defined(__arm) || defined(__arm64)<br>
> -#    define __OPEN_NAME  "_open"<br>
> -#  else<br>
> -#    error "unrecognized architecture for targeting iOS"<br>
> -#  endif<br>
> -#else<br>
> -#  error "unrecognized architecture for targeting Darwin"<br>
> -#endif<br>
> -<br>
> -#define O_RDONLY   0x0000    /* open for reading only */<br>
> -#define O_WRONLY   0x0001    /* open for writing only */<br>
> -#define O_RDWR     0x0002    /* open for reading and writing */<br>
> -#define O_ACCMODE  0x0003    /* mask for above modes */<br>
> -<br>
> -#define O_CREAT    0x0200    /* create if nonexistent */<br>
> -<br>
> -int open(const char *, int, ...) __asm(__OPEN_NAME);<br>
> -<br>
> -#endif /* !_SYS_FCNTL_H_ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/sys/mman.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/mman.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/mman.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/sys/mman.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/sys/mman.h (removed)<br>
> @@ -1,42 +0,0 @@<br>
> -/* ===-- mman.h - stub SDK header for compiler-rt ---------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __SYS_MMAN_H__<br>
> -#define __SYS_MMAN_H__<br>
> -<br>
> -typedef __SIZE_TYPE__ size_t;<br>
> -<br>
> -#define PROT_NONE     0x00<br>
> -#define PROT_READ     0x01<br>
> -#define PROT_WRITE    0x02<br>
> -#define PROT_EXEC     0x04<br>
> -<br>
> -#define MAP_SHARED    0x0001<br>
> -#define MAP_PRIVATE   0x0002<br>
> -<br>
> -#define MAP_FILE      0x0000<br>
> -#define MAP_ANON      0x1000<br>
> -<br>
> -#define MS_ASYNC      0x0001<br>
> -#define MS_INVALIDATE 0x0002<br>
> -#define MS_SYNC       0x0010<br>
> -<br>
> -void *mmap(void *addr, size_t len, int prot, int flags, int fd,<br>
> -           long long offset);<br>
> -int munmap(void *addr, size_t len);<br>
> -int msync(void *addr, size_t len, int flags);<br>
> -<br>
> -#endif /* __SYS_MMAN_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/sys/stat.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/stat.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/stat.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/sys/stat.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/sys/stat.h (removed)<br>
> @@ -1,25 +0,0 @@<br>
> -/* ===-- stat.h - stub SDK header for compiler-rt ---------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __SYS_STAT_H__<br>
> -#define __SYS_STAT_H__<br>
> -<br>
> -typedef unsigned short uint16_t;<br>
> -typedef uint16_t mode_t;<br>
> -<br>
> -int mkdir(const char *, mode_t);<br>
> -<br>
> -#endif /* __SYS_STAT_H__ */<br>
><br>
> Removed: compiler-rt/trunk/SDKs/darwin/usr/include/sys/types.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/types.h?rev=221620&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/darwin/usr/include/sys/types.h?rev=221620&view=auto</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/SDKs/darwin/usr/include/sys/types.h (original)<br>
> +++ compiler-rt/trunk/SDKs/darwin/usr/include/sys/types.h (removed)<br>
> @@ -1,20 +0,0 @@<br>
> -/* ===-- types.h - stub SDK header for compiler-rt --------------------------===<br>
> - *<br>
> - *                     The LLVM Compiler Infrastructure<br>
> - *<br>
> - * This file is dual licensed under the MIT and the University of Illinois Open<br>
> - * Source Licenses. See LICENSE.TXT for details.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - *<br>
> - * This is a stub SDK header file. This file is not part of the interface of<br>
> - * this library nor an official version of the appropriate SDK header. It is<br>
> - * intended only to stub the features of this header required by compiler-rt.<br>
> - *<br>
> - * ===-----------------------------------------------------------------------===<br>
> - */<br>
> -<br>
> -#ifndef __SYS_TYPES_H__<br>
> -#define __SYS_TYPES_H__<br>
> -<br>
> -#endif /* __SYS_TYPES_H__ */<br>
><br>
> Modified: compiler-rt/trunk/make/platform/<a href="http://clang_darwin.mk" target="_blank">clang_darwin.mk</a><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=221621&r1=221620&r2=221621&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=221621&r1=221620&r2=221621&view=diff</a><br>
> ==============================================================================<br>
> --- compiler-rt/trunk/make/platform/<a href="http://clang_darwin.mk" target="_blank">clang_darwin.mk</a> (original)<br>
> +++ compiler-rt/trunk/make/platform/<a href="http://clang_darwin.mk" target="_blank">clang_darwin.mk</a> Mon Nov 10 13:38:15 2014<br>
> @@ -6,16 +6,21 @@<br>
><br>
> Description := Static runtime libraries for clang/Darwin.<br>
><br>
> -# A function that ensures we don't try to build for architectures that we<br>
> -# don't have working toolchains for.<br>
> +# A function that ensures we don't try to build for architectures and SDKs<br>
> +# that we don't have working toolchains for. Arguments:<br>
> +# (1): List of architectures<br>
> +# (2): Library name<br>
> +# (3): SDK path<br>
> +# The result is a possibly empty subset of the architectures from argument 1.<br>
> CheckArches = \<br>
>   $(shell \<br>
>     result=""; \<br>
> -    for arch in $(1); do \<br>
> +    if [ "X$(3)" != X ]; then \<br>
> +     for arch in $(1); do \<br>
>       if $(CC) -arch $$arch -c \<br>
>           -integrated-as \<br>
>           $(ProjSrcRoot)/make/platform/clang_darwin_test_input.c \<br>
> -          -isysroot $(ProjSrcRoot)/SDKs/darwin \<br>
> +          -isysroot $(3) \<br>
>           -o /dev/null > /dev/null 2> /dev/null; then \<br>
>         if $(LD) -v 2>&1 | grep "configured to support" \<br>
>            | tr ' ' '\n' | grep "^$$arch$$" >/dev/null 2>/dev/null; then \<br>
> @@ -30,7 +35,8 @@ CheckArches = \<br>
>           "warning: <a href="http://clang_darwin.mk" target="_blank">clang_darwin.mk</a>: dropping arch '$$arch' from lib '$(2)'"; \<br>
>         printf 1>&2 " (clang does not support it)\n"; \<br>
>       fi; \<br>
> -    done; \<br>
> +     done; \<br>
> +    fi; \<br>
>     echo $$result)<br>
><br>
> XCRun = \<br>
> @@ -53,6 +59,10 @@ STRIP    := $(call XCRun,strip)<br>
> LIPO     := $(call XCRun,lipo)<br>
> DSYMUTIL := $(call XCRun,dsymutil)<br>
><br>
> +OSX_SDK := $(call XCRunSdkPath,macosx)<br>
> +IOS_SDK := $(call XCRunSdkPath,iphoneos)<br>
> +IOSSIM_SDK := $(call XCRunSdkPath,iphonesimulator)<br>
> +<br>
> Configs :=<br>
> UniversalArchs :=<br>
><br>
> @@ -60,51 +70,53 @@ UniversalArchs :=<br>
> # still be referenced from Darwin system headers. This symbol is only ever<br>
> # needed on i386.<br>
> Configs += eprintf<br>
> -UniversalArchs.eprintf := $(call CheckArches,i386,eprintf)<br>
> +UniversalArchs.eprintf := $(call CheckArches,i386,eprintf,$(OSX_SDK))<br>
><br>
> # Configuration for targeting 10.4. We need a few functions missing from<br>
> # libgcc_s.10.4.dylib. We only build x86 slices since clang doesn't really<br>
> # support targeting PowerPC.<br>
> Configs += 10.4<br>
> -UniversalArchs.10.4 := $(call CheckArches,i386 x86_64,10.4)<br>
> +UniversalArchs.10.4 := $(call CheckArches,i386 x86_64,10.4,$(OSX_SDK))<br>
><br>
> # Configuration for targeting iOS for a couple of functions that didn't<br>
> # make it into libSystem.<br>
> Configs += ios<br>
> -UniversalArchs.ios := $(call CheckArches,i386 x86_64 armv7 arm64,ios)<br>
> +UniversalArchs.ios := $(call CheckArches,i386 x86_64,ios,$(IOSSIM_SDK))<br>
> +UniversalArchs.ios += $(call CheckArches,armv7 arm64,ios,$(IOS_SDK))<br>
><br>
> # Configuration for targeting OSX. These functions may not be in libSystem<br>
> # so we should provide our own.<br>
> Configs += osx<br>
> -UniversalArchs.osx := $(call CheckArches,i386 x86_64 x86_64h,osx)<br>
> +UniversalArchs.osx := $(call CheckArches,i386 x86_64 x86_64h,osx,$(OSX_SDK))<br>
><br>
> # Configuration for use with kernel/kexts.<br>
> Configs += cc_kext<br>
> -UniversalArchs.cc_kext := $(call CheckArches,armv7 arm64 i386 x86_64 x86_64h,cc_kext)<br>
> +UniversalArchs.cc_kext := $(call CheckArches,i386 x86_64 x86_64h,cc_kext,$(OSX_SDK))<br>
> +UniversalArchs.cc_kext += $(call CheckArches,armv7 arm64,cc_kext,$(IOS_SDK))<br>
><br>
> # Configuration for use with kernel/kexts for iOS 5.0 and earlier (which used<br>
> -# a different code generation strategy).<br>
> +# a different code generation strategy). Note: the x86_64 slice is unused but<br>
> +# it avoids build problems (see pr14013).<br>
> Configs += cc_kext_ios5<br>
> -UniversalArchs.cc_kext_ios5 := $(call CheckArches,x86_64 armv7,cc_kext_ios5)<br>
> +UniversalArchs.cc_kext_ios5 := $(call CheckArches,x86_64,cc_kext_ios5,$(IOSSIM_SDK))<br>
> +UniversalArchs.cc_kext_ios5 += $(call CheckArches,armv7,cc_kext_ios5,$(IOS_SDK))<br>
><br>
> # Configurations which define the profiling support functions.<br>
> Configs += profile_osx<br>
> -UniversalArchs.profile_osx := $(call CheckArches,i386 x86_64 x86_64h,profile_osx)<br>
> +UniversalArchs.profile_osx := $(call CheckArches,i386 x86_64 x86_64h,profile_osx,$(OSX_SDK))<br>
> Configs += profile_ios<br>
> -UniversalArchs.profile_ios := $(call CheckArches,i386 x86_64 armv7 arm64,profile_ios)<br>
> +UniversalArchs.profile_ios := $(call CheckArches,i386 x86_64,profile_ios,$(IOSSIM_SDK))<br>
> +UniversalArchs.profile_ios += $(call CheckArches,armv7 arm64,profile_ios,$(IOS_SDK))<br>
><br>
> # Configurations which define the ASAN support functions.<br>
> Configs += asan_osx_dynamic<br>
> -UniversalArchs.asan_osx_dynamic := $(call CheckArches,i386 x86_64 x86_64h,asan_osx_dynamic)<br>
> +UniversalArchs.asan_osx_dynamic := $(call CheckArches,i386 x86_64 x86_64h,asan_osx_dynamic,$(OSX_SDK))<br>
><br>
> -IOSSIM_SDK_PATH := $(call XCRunSdkPath,iphonesimulator)<br>
> -ifneq ($(IOSSIM_SDK_PATH),)<br>
> Configs += asan_iossim_dynamic<br>
> -UniversalArchs.asan_iossim_dynamic := $(call CheckArches,i386 x86_64,asan_iossim_dynamic)<br>
> -endif<br>
> +UniversalArchs.asan_iossim_dynamic := $(call CheckArches,i386 x86_64,asan_iossim_dynamic,$(IOSSIM_SDK))<br>
><br>
> Configs += ubsan_osx<br>
> -UniversalArchs.ubsan_osx := $(call CheckArches,i386 x86_64 x86_64h,ubsan_osx)<br>
> +UniversalArchs.ubsan_osx := $(call CheckArches,i386 x86_64 x86_64h,ubsan_osx,$(OSX_SDK))<br>
><br>
> # Darwin 10.6 has a bug in cctools that makes it unable to use ranlib on our ARM<br>
> # object files. If we are on that platform, strip out all ARM archs. We still<br>
> @@ -119,17 +131,18 @@ endif<br>
><br>
> # If RC_SUPPORTED_ARCHS is defined, treat it as a list of the architectures we<br>
> # are intended to support and limit what we try to build to that.<br>
> -#<br>
> -# We make sure to remove empty configs if we end up dropping all the requested<br>
> -# archs for a particular config.<br>
> ifneq ($(RC_SUPPORTED_ARCHS),)<br>
> $(foreach config,$(Configs),\<br>
>   $(call Set,UniversalArchs.$(config),\<br>
> -     $(filter $(RC_SUPPORTED_ARCHS),$(UniversalArchs.$(config))))\<br>
> -  $(if $(UniversalArchs.$(config)),,\<br>
> -     $(call Set,Configs,$(filter-out $(config),$(Configs)))))<br>
> +     $(filter $(RC_SUPPORTED_ARCHS),$(UniversalArchs.$(config))))<br>
> endif<br>
><br>
> +# Remove empty configs if we end up dropping all the requested<br>
> +# archs for a particular config.<br>
> +$(foreach config,$(Configs),\<br>
> +  $(if $(strip $(UniversalArchs.$(config))),,\<br>
> +     $(call Set,Configs,$(filter-out $(config),$(Configs)))))<br>
> +<br>
> ###<br>
><br>
> # Forcibly strip off any -arch, as that totally breaks our universal support.<br>
> @@ -147,28 +160,31 @@ IOS_DEPLOYMENT_ARGS := -mios-version-min<br>
> IOS6_DEPLOYMENT_ARGS := -mios-version-min=6.0<br>
> IOSSIM_DEPLOYMENT_ARGS := -mios-simulator-version-min=1.0<br>
><br>
> -# Use our stub SDK as the sysroot to support more portable building.<br>
> -OSX_DEPLOYMENT_ARGS += -isysroot $(ProjSrcRoot)/SDKs/darwin<br>
> -IOS_DEPLOYMENT_ARGS += -isysroot $(ProjSrcRoot)/SDKs/darwin<br>
> -IOS6_DEPLOYMENT_ARGS += -isysroot $(ProjSrcRoot)/SDKs/darwin<br>
> -IOSSIM_DEPLOYMENT_ARGS += -isysroot $(ProjSrcRoot)/SDKs/darwin<br>
> +OSX_DEPLOYMENT_ARGS += -isysroot $(OSX_SDK)<br>
> +IOS_DEPLOYMENT_ARGS += -isysroot $(IOS_SDK)<br>
> +IOS6_DEPLOYMENT_ARGS += -isysroot $(IOS_SDK)<br>
> +IOSSIM_DEPLOYMENT_ARGS += -isysroot $(IOSSIM_SDK)<br>
><br>
> CFLAGS.eprintf                := $(CFLAGS) $(OSX_DEPLOYMENT_ARGS)<br>
> CFLAGS.10.4           := $(CFLAGS) $(OSX_DEPLOYMENT_ARGS)<br>
> -# FIXME: We can't build ASAN with our stub SDK yet.<br>
> +<br>
> CFLAGS.asan_osx_dynamic := \<br>
> -     $(CFLAGS) -mmacosx-version-min=10.7 -fno-builtin \<br>
> +     $(CFLAGS) -mmacosx-version-min=10.7 \<br>
> +     -isysroot $(OSX_SDK) \<br>
> +     -fno-builtin \<br>
>       -gline-tables-only \<br>
>       -DMAC_INTERPOSE_FUNCTIONS=1<br>
><br>
> CFLAGS.asan_iossim_dynamic := \<br>
>       $(CFLAGS) -mios-simulator-version-min=7.0 \<br>
> -        -isysroot $(IOSSIM_SDK_PATH) \<br>
> +        -isysroot $(IOSSIM_SDK) \<br>
>         -fno-builtin \<br>
>       -gline-tables-only \<br>
>       -DMAC_INTERPOSE_FUNCTIONS=1<br>
><br>
> -CFLAGS.ubsan_osx := $(CFLAGS) -mmacosx-version-min=10.6 -fno-builtin<br>
> +CFLAGS.ubsan_osx := $(CFLAGS) -mmacosx-version-min=10.6 \<br>
> +     -isysroot $(OSX_SDK) \<br>
> +     -fno-builtin<br>
><br>
> CFLAGS.ios.i386               := $(CFLAGS) $(IOSSIM_DEPLOYMENT_ARGS)<br>
> CFLAGS.ios.x86_64     := $(CFLAGS) $(IOSSIM_DEPLOYMENT_ARGS)<br>
> @@ -209,7 +225,7 @@ SHARED_LIBRARY.asan_iossim_dynamic := 1<br>
> # or -Wl,-syslibroot.<br>
> LDFLAGS.asan_iossim_dynamic := -undefined dynamic_lookup -install_name @rpath/libclang_rt.asan_iossim_dynamic.dylib \<br>
>   -Wl,-ios_simulator_version_min,7.0.0 \<br>
> -  -mios-simulator-version-min=7.0 -isysroot $(IOSSIM_SDK_PATH)<br>
> +  -mios-simulator-version-min=7.0 -isysroot $(IOSSIM_SDK)<br>
><br>
> FUNCTIONS.eprintf := eprintf<br>
> FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf<br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</font></span></div></div>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div></div>