Skip to content

Commit

Permalink
Fixed arrangement of NVCC compiler arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 10, 2024
1 parent 59ede58 commit 0e7d89c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@
gpp_command.remove('-msse3')

gpp_command += cpp_files + ['-o', OUTPUT_EXECUTABLE]
nvcc_command = [
'nvcc', '-Iinclude'
] + cpp_files + ['-o', OUTPUT_EXECUTABLE + '-cuda']
nvcc_command = ['nvcc']

if PLATFORM == 'Windows':
nvcc_command.append('-Xcompiler /std:c++17')

nvcc_command.append('-Iinclude')
nvcc_command += cpp_files + ['-o', OUTPUT_EXECUTABLE + '-cuda']

os.makedirs(OUT_DIR, exist_ok=True)

try:
Expand Down

0 comments on commit 0e7d89c

Please sign in to comment.