Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
6f26c406
Commit
6f26c406
authored
Aug 01, 2016
by
Matthieu Schaller
Browse files
Default to AX_CFLAGS_WARN_ALL for the choice of compiler flags when we don't know the compiler.
parent
6ed86e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
6f26c406
...
...
@@ -452,14 +452,17 @@ AC_ARG_ENABLE([compiler-warnings],
if test "$enable_warn" != "no"; then
# AX_CFLAGS_WARN_ALL does not give good warning flags for the Intel compiler
# We will do this by hand instead
# We will do this by hand instead
and only default to the macro for unknown compilers
case "$ax_cv_c_compiler_vendor" in
gnu | clang)
CFLAGS="$CFLAGS -Wall"
;;
intel
)
intel)
CFLAGS="$CFLAGS -w2"
;;
*)
AX_CFLAGS_WARN_ALL
;;
esac
# Add a "choke on warning" flag if it exists
...
...
Matthieu Schaller
@matthieu
mentioned in merge request
!213 (merged)
·
Aug 01, 2016
mentioned in merge request
!213 (merged)
mentioned in merge request !213
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment