Skip to content

Commit

Permalink
Update compiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BachiLi authored Apr 4, 2024
1 parent 11a0b1c commit a3e7d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ def compile(loma_code : str,
tasksys_define = ''
if platform.system() == 'Windows':
tasksys_define = '-DISPC_USE_OMP'
log = run(['g++', tasksys_define, '-fPIC', '-c', '-o', output_filename, '-O2', '-o', tasksys_obj_path, tasksys_path],
log = run(['g++', tasksys_define, '-fopenmp', '-fPIC', '-c', '-o', output_filename, '-O2', '-o', tasksys_obj_path, tasksys_path],
encoding='utf-8',
capture_output=True)
if log.returncode != 0:
print(log.stderr)

log = run(['g++', '-fPIC', '-shared', '-o', output_filename, '-O2', obj_filename, tasksys_obj_path],
log = run(['g++', '-fopenmp', '-fPIC', '-shared', '-o', output_filename, '-O2', obj_filename, tasksys_obj_path],
encoding='utf-8',
capture_output=True)
if log.returncode != 0:
Expand Down

0 comments on commit a3e7d15

Please sign in to comment.