use optimization when generating dependency (#10999)
This is to avoid _FORTIFY_SOURCE requires compiling with optimization (-O) warning during compile
This commit is contained in:
parent
ce3c4662fb
commit
2403455daa
@ -213,7 +213,7 @@ def InvokeNvcc(argv, log=False):
|
||||
' --compiler-options "' + host_compiler_options + '"' +
|
||||
' --compiler-bindir=' + GCC_HOST_COMPILER_PATH +
|
||||
' -I .' +
|
||||
' -x cu ' + includes + ' ' + srcs + ' -M -o ' + depfile)
|
||||
' -x cu ' + opt + includes + ' ' + srcs + ' -M -o ' + depfile)
|
||||
if log: Log(cmd)
|
||||
exit_status = os.system(cmd)
|
||||
if exit_status != 0:
|
||||
|
Loading…
Reference in New Issue
Block a user