Changeset 15e74ad in sasmodels
- Timestamp:
- May 31, 2016 8:43:34 AM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 7f3a89c
- Parents:
- 6708a6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kerneldll.py
rc7118f4 r15e74ad 85 85 elif tinycc: 86 86 # TinyCC compiler. 87 CC = [tinycc. find_tcc_path()] + "-shared -rdynamic -Wall".split()87 CC = [tinycc.TCC] + "-shared -rdynamic -Wall".split() 88 88 def compile_command(source, output): 89 return CC + [ "%s"%source, "-o", "%s"%output]89 return CC + [source, "-o", output] 90 90 else: 91 91 # MinGW compiler. … … 94 94 CC.append("-fopenmp") 95 95 def compile_command(source, output): 96 return CC + [ "%s"%source, "-o", "%s"%output, "-lm"]96 return CC + [source, "-o", output, "-lm"] 97 97 else: 98 98 ARCH = "" … … 105 105 CC.append("-fopenmp") 106 106 def compile_command(source, output): 107 return CC + [ "%s"%source, "-o", "%s"%output, "-lm"]107 return CC + [source, "-o", output, "-lm"] 108 108 109 109 # Windows-specific solution … … 123 123 command_str = " ".join('"%s"'%p if ' ' in p else p for p in command) 124 124 logging.info(command_str) 125 shell = (os.name == 'nt')126 125 try: 126 # need shell=True on windows to keep console box from popping up 127 shell = (os.name == 'nt') 127 128 subprocess.check_output(command, shell=shell, stderr=subprocess.STDOUT) 128 129 except subprocess.CalledProcessError as exc:
Note: See TracChangeset
for help on using the changeset viewer.