diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-29 22:47:19 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-29 22:47:19 +0000 |
commit | e5c9e096a9e7171e8e97ab77610a71610e966f98 (patch) | |
tree | c5fd17d9de8e78b35317763e108ea8a4e34d8bad | |
parent | 5ad2649083d75f2d3cfac7b56e0dc391d6e29541 (diff) |
Alternate fix to the modules failures that doesn't require us to tweak tgmath.h
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149210 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Headers/tgmath.h | 2 | ||||
-rw-r--r-- | test/Modules/compiler_builtins.m | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/Headers/tgmath.h b/lib/Headers/tgmath.h index 0617ae2ddb..1b0b9d24c1 100644 --- a/lib/Headers/tgmath.h +++ b/lib/Headers/tgmath.h @@ -26,7 +26,6 @@ #define __TGMATH_H /* C99 7.22 Type-generic math <tgmath.h>. */ -#if __has_include(<math.h>) #include <math.h> /* C++ handles type genericity with overloading in math.h. */ @@ -1355,5 +1354,4 @@ static long double #undef _TG_ATTRS #endif /* __cplusplus */ -#endif /* __has_include(<math.h>) */ #endif /* __TGMATH_H */ diff --git a/test/Modules/compiler_builtins.m b/test/Modules/compiler_builtins.m index 3cf24142d3..52db15c24a 100644 --- a/test/Modules/compiler_builtins.m +++ b/test/Modules/compiler_builtins.m @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -verify %s +// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t -Xclang -verify %s @import __compiler_builtins.float_constants; |