From e7160ea10a6cd6a12c0de5fe0ceb960e0e9bcfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20P=C3=B6chtrager?= Date: Tue, 3 Dec 2013 20:06:18 +0100 Subject: [PATCH] there is an issue in the OSX SDK stdarg.h header file which causes va_copy not to be defined with -std=c++11, so use clang's fixed intrinsic header instead diff: -#if __STDC_VERSION__ >= 199900L || !defined(__STRICT_ANSI__) +#if __STDC_VERSION__ >= 199900L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__) #define va_copy(dest, src) __builtin_va_copy(dest, src) #endif --- oclang/find_intrinsic_headers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/oclang/find_intrinsic_headers.sh b/oclang/find_intrinsic_headers.sh index 32a4670..9716caa 100755 --- a/oclang/find_intrinsic_headers.sh +++ b/oclang/find_intrinsic_headers.sh @@ -24,6 +24,7 @@ test -f "$CLANG_INTRIN_DIR/xmmintrin.h" || { echo "xmmintrin.h does not exist in echo "found clang intrinsic headers: $CLANG_INTRIN_DIR" ln -sf $CLANG_INTRIN_DIR/float.h $SDK_DIR/usr/include +ln -sf $CLANG_INTRIN_DIR/stdarg.h $SDK_DIR/usr/include ln -sf $CLANG_INTRIN_DIR/*intrin*.h $SDK_DIR/usr/include ln -sf $CLANG_INTRIN_DIR/mm*.h $SDK_DIR/usr/include ln -sf $CLANG_INTRIN_DIR/*va*.h $SDK_DIR/usr/include