[PATCH] D15596: Add -L/path/to/cuda/lib if any of our inputs are CUDA files.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 6 14:26:35 PST 2016
jlebar added inline comments.
================
Comment at: lib/Driver/ToolChains.cpp:4129-4137
@@ -4123,4 +4128,11 @@
+ LDArgs.push_back("-L");
+ LDArgs.push_back(DriverArgs.MakeArgString(CudaInstallation.getLibPath()));
+ for (const char *Flag : {"-lcudart_static", "-ldl", "-lrt", "-lpthread"}) {
+ LDArgs.push_back(DriverArgs.MakeArgString(Flag));
+ }
+}
+
bool Linux::isPIEDefault() const { return getSanitizerArgs().requiresPIE(); }
SanitizerMask Linux::getSupportedSanitizers() const {
const bool IsX86 = getTriple().getArch() == llvm::Triple::x86;
----------------
Although then I deleted the relevant tests... I just added new ones. :)
http://reviews.llvm.org/D15596
More information about the cfe-commits
mailing list