(self, verbose=0, dry_run=0, force=0)
| 54 | cc_args = '-fPIC' |
| 55 | |
| 56 | def __init__(self, verbose=0, dry_run=0, force=0): |
| 57 | UnixCCompiler.__init__(self, verbose, dry_run, force) |
| 58 | |
| 59 | v = self.get_version() |
| 60 | mpopt = 'openmp' if v and v < '15' else 'qopenmp' |
| 61 | self.cc_exe = ('icc -std=c99 -m64 -fPIC -fp-model strict -O3 ' |
| 62 | '-fomit-frame-pointer -{}').format(mpopt) |
| 63 | compiler = self.cc_exe |
| 64 | |
| 65 | if platform.system() == 'Darwin': |
| 66 | shared_flag = '-Wl,-undefined,dynamic_lookup' |
| 67 | else: |
| 68 | shared_flag = '-shared' |
| 69 | self.set_executables(compiler=compiler, |
| 70 | compiler_so=compiler, |
| 71 | compiler_cxx=compiler, |
| 72 | archiver='xiar' + ' cru', |
| 73 | linker_exe=compiler + ' -shared-intel', |
| 74 | linker_so=compiler + ' ' + shared_flag + |
| 75 | ' -shared-intel') |
| 76 | |
| 77 | |
| 78 | if platform.system() == 'Windows': |
nothing calls this directly
no test coverage detected