Skip to content

Commit

Permalink
Support --compiler-options in nvcc_wrapper
Browse files Browse the repository at this point in the history
According to 'nvcc --help', it is just an alias to -Xcompiler.

nvcc --help
...
--compiler-options <options>,...                (-Xcompiler)                    
        Specify options directly to the compiler/preprocessor.
  • Loading branch information
jczhang07 committed Mar 16, 2023
1 parent 9480cb5 commit 4fde4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/nvcc_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ do
-Woverloaded-virtual)
;;
#strip -Xcompiler because we add it
-Xcompiler)
-Xcompiler|--compiler-options)
if [[ $2 != "-o" ]]; then
if [ $first_xcompiler_arg -eq 1 ]; then
xcompiler_args="$2"
Expand Down

0 comments on commit 4fde4b0

Please sign in to comment.