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:
Gao, Xiang 2017-07-25 00:50:19 -04:00 committed by Vijay Vasudevan
parent ce3c4662fb
commit 2403455daa

View File

@ -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: