mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
better clang detection
This commit is contained in:
@@ -0,0 +1 @@
|
||||
int main() {}
|
||||
+6
-1
@@ -30,7 +30,12 @@ GCC = os.environ.get('CC', sysconfig.get_config_var('CC'))
|
||||
if not GCC:
|
||||
GCC = 'gcc'
|
||||
|
||||
CPP = os.environ.get('CPP', 'cpp')
|
||||
def get_preprocessor():
|
||||
if 'clang' in GCC:
|
||||
return 'clang -xc core/clang_fake.c'
|
||||
return 'cpp'
|
||||
|
||||
CPP = os.environ.get('CPP', get_preprocessor())
|
||||
|
||||
try:
|
||||
CPUCOUNT = int(os.environ.get('CPUCOUNT', -1))
|
||||
|
||||
Reference in New Issue
Block a user