Skip to content

Commit

Permalink
Merge pull request #2645 from xrmx/fix-compile-in-modern-distros
Browse files Browse the repository at this point in the history
uwsgiconfig: get compiler version with -dumpfullversion
  • Loading branch information
xrmx authored May 27, 2024
2 parents 26ee7c0 + aa454f3 commit 136de6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uwsgiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,13 +712,13 @@ def __init__(self, filename, mute=False):
if uwsgi_os == 'GNU':
self.cflags.append('-D__HURD__')

gcc_version = spcall("%s -dumpversion" % GCC)
gcc_version = spcall("%s -dumpfullversion -dumpversion" % GCC)
if not gcc_version and GCC.startswith('gcc'):
if uwsgi_os == 'Darwin':
GCC = 'llvm-' + GCC
else:
GCC = 'gcc'
gcc_version = spcall("%s -dumpversion" % GCC)
gcc_version = spcall("%s -dumpfullversion -dumpversion" % GCC)

try:
add_it = False
Expand Down

0 comments on commit 136de6a

Please sign in to comment.