你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-04 11:36:52 +08:00
Added checking for gcc 8.x
这个提交包含在:
4
setup.py
4
setup.py
@@ -110,13 +110,13 @@ if sys.platform == 'win32':
|
||||
# Mac OS X - needs gcc (usually via HomeBrew) because the default compiler LLVM (clang) does not support OpenMP
|
||||
# - with gcc -fopenmp option implies -pthread
|
||||
elif sys.platform == 'darwin':
|
||||
gccpath = glob.glob('/usr/local/bin/gcc-[4-7]*')
|
||||
gccpath = glob.glob('/usr/local/bin/gcc-[4-8]*')
|
||||
if gccpath:
|
||||
# Use newest gcc found
|
||||
os.environ['CC'] = gccpath[-1].split(os.sep)[-1]
|
||||
rpath = '/usr/local/opt/gcc/lib/gcc/' + gccpath[-1].split(os.sep)[-1][-1] + '/'
|
||||
else:
|
||||
raise('Cannot find gcc 4.x, 5.x, 6.x, or 7.x in /usr/local/bin. gprMax requires gcc to be installed - easily done through the Homebrew package manager (http://brew.sh). Note: gcc with OpenMP support, i.e. --without-multilib, must be installed')
|
||||
raise('Cannot find gcc 4.x, 5.x, 6.x, 7.x, or 8.x in /usr/local/bin. gprMax requires gcc to be installed - easily done through the Homebrew package manager (http://brew.sh). Note: gcc with OpenMP support, i.e. --without-multilib, must be installed')
|
||||
compile_args = ['-O3', '-w', '-fopenmp', '-march=native'] # Sometimes worth testing with '-fstrict-aliasing', '-fno-common'
|
||||
linker_args = ['-fopenmp', '-Wl,-rpath,' + rpath]
|
||||
extra_objects = []
|
||||
|
在新工单中引用
屏蔽一个用户