================ @@ -648,6 +648,15 @@ void amdgpu::Linker::ConstructJob(Compilation &C, const JobAction &JA, Args.MakeArgString("-plugin-opt=-mattr=" + llvm::join(Features, ","))); } + if (Args.hasArg(options::OPT_gpustartfiles)) { ---------------- jhuber6 wrote:
Unfortunately not, there's `-nostartfiles` and `-nostdlib`, but nothing to invert that. Adding one would probably add a few hundred changes of `hasArg` to `hasFlag`. The other targets just assume they're hosted, and I can't just link calls to `main` by default since no one wants that unless they're trying to write tests or something. https://github.com/llvm/llvm-project/pull/112025 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits