diff options
author | Julien Lerouge <jlerouge@apple.com> | 2009-10-26 19:58:44 +0000 |
---|---|---|
committer | Julien Lerouge <jlerouge@apple.com> | 2009-10-26 19:58:44 +0000 |
commit | 8039e03777b9db1d90fecfaf413945c45560b727 (patch) | |
tree | ac9a411172af38925805dc8cccbd37dec7987711 /autoconf/configure.ac | |
parent | ada0ef86d98df4ac36808e4a0f0098250bf1a842 (diff) | |
download | external_llvm-8039e03777b9db1d90fecfaf413945c45560b727.zip external_llvm-8039e03777b9db1d90fecfaf413945c45560b727.tar.gz external_llvm-8039e03777b9db1d90fecfaf413945c45560b727.tar.bz2 |
Add an autoconf test to check for optional compiler flags like
-Wno-missing-field-initializers or -Wno-variadic-macros.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index b9ad6bb..794326d 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -943,6 +943,12 @@ fi dnl Tool compatibility is okay if we make it here. AC_MSG_RESULT([ok]) +dnl Check optional compiler flags. +AC_MSG_CHECKING([optional compiler flags]) +CXX_FLAG_CHECK(NO_VARIADIC_MACROS, [-Wno-variadic-macros]) +CXX_FLAG_CHECK(NO_MISSING_FIELD_INITIALIZERS, [-Wno-missing-field-initializers]) +AC_MSG_RESULT([$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS]) + dnl===-----------------------------------------------------------------------=== dnl=== dnl=== SECTION 5: Check for libraries |