[PATCH] D57829: [CUDA][HIP] Disable emitting llvm.linker.options in device compilation
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 31 14:15:04 PDT 2019
tra added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:389-392
+ // The linker_option directives are intended for host compilation.
+ if (JA.isDeviceOffloading(Action::OFK_Cuda) ||
+ JA.isDeviceOffloading(Action::OFK_HIP))
+ Default = false;
----------------
Shouldn't it be `true`, considering that we do want to **disable** autolinking by default for device-side CUDA/HIP?
If we don't support autolinking at all for CUDA/HIP, perhaps we should just return `true` here.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57829/new/
https://reviews.llvm.org/D57829
More information about the cfe-commits
mailing list