diff options
| author | Jack Nagel | 2012-08-13 20:25:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 20:25:03 -0500 |
| commit | 9c6093f8fc034bf66a3b3555b6c18050fad2debd (patch) | |
| tree | 59a1cdc67994b58a0eff678002101b258b10207f /Library | |
| parent | 7dd2e5f4319a1a3e6e3d7cafa8cd714502231440 (diff) | |
| download | homebrew-9c6093f8fc034bf66a3b3555b6c18050fad2debd.tar.bz2 | |
python3: wrap clang flags in a conditional
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/python3.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 052cd2772..b410435d6 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -76,10 +76,12 @@ class Python3 < Formula # We need to enable warnings because the configure.in uses -Werror to detect # "whether gcc supports ParseTuple" (https://github.com/mxcl/homebrew/issues/12194) ENV.enable_warnings - # http://docs.python.org/devguide/setup.html#id8 suggests to disable some Warnings. - ENV.append_to_cflags '-Wno-unused-value' - ENV.append_to_cflags '-Wno-empty-body' - ENV.append_to_cflags '-Qunused-arguments' + if ENV.compiler == :clang + # http://docs.python.org/devguide/setup.html#id8 suggests to disable some Warnings. + ENV.append_to_cflags '-Wno-unused-value' + ENV.append_to_cflags '-Wno-empty-body' + ENV.append_to_cflags '-Qunused-arguments' + end # Allow sqlite3 module to load extensions: # http://docs.python.org/library/sqlite3.html#f1 |
