diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-12 22:51:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 22:51:07 (GMT) |
commit | a304b136adda3575898d8b5debedcd48d5072272 (patch) | |
tree | fb17a42257bf48130afc2388685396f4952c2aec /configure | |
parent | 1e8295402bf5e81d327ed2b5eb88a6b6de449d63 (diff) | |
download | cpython-a304b136adda3575898d8b5debedcd48d5072272.zip cpython-a304b136adda3575898d8b5debedcd48d5072272.tar.gz cpython-a304b136adda3575898d8b5debedcd48d5072272.tar.bz2 |
bpo-36618: Don't add -fmax-type-align flag to old clang (GH-12811)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -6889,9 +6889,14 @@ then # instead: slower but don't trigger a SIGSEGV if the memory is not aligned # on 16 bytes. # - # Sadly, the flag must be expected to CFLAGS and not just CFLAGS_NODIST, + # Sadly, the flag must be added to CFLAGS and not just CFLAGS_NODIST, # since third party C extensions can have the same issue. - CFLAGS="$CFLAGS -fmax-type-align=8" + # + # Check if -fmax-type-align flag is supported (it's not supported by old + # clang versions): + if "$CC" -v --help 2>/dev/null |grep -- -fmax-type-align > /dev/null; then + CFLAGS="$CFLAGS -fmax-type-align=8" + fi fi |