scripts: waifulib: compiler_optimizations: set HAVE_OPENMP=1 define if openmp feature was enabled during the build

This commit is contained in:
Alibek Omarov 2024-05-29 05:32:25 +03:00
parent 1545a49b4c
commit 27cab8aad5

View file

@ -122,9 +122,9 @@ POLLY_CFLAGS = {
}
OPENMP_CFLAGS = {
'gcc': ['-fopenmp'],
'clang': ['-fopenmp'],
'msvc': ['/openmp']
'gcc': ['-fopenmp', '-DHAVE_OPENMP=1'],
'clang': ['-fopenmp', '-DHAVE_OPENMP=1'],
'msvc': ['/openmp', '/DHAVE_OPENMP=1']
}
OPENMP_LINKFLAGS = {