Hahnfeld added inline comments.
================
Comment at: tools/clang-offload-bundler/ClangOffloadBundler.cpp:477-490
@@ +476,16 @@
+
+ // Do the incremental linking. We write to the output file directly. So, we
+ // close it and use the name to pass down to clang.
+ OS.close();
+ SmallString<128> TargetName = getTriple(TargetNames.front());
+ const char *ClangArgs[] = {"clang",
+ "-r",
+ "-target",
+ TargetName.c_str(),
+ "-o",
+ OutputFileNames.front().c_str(),
+ InputFileNames.front().c_str(),
+ BitcodeFileName.c_str(),
+ "-nostdlib",
+ nullptr};
+
----------------
`test/Driver/clang-offload-bundler.c` gives me
```
/..//bin/ld: unrecognised emulation mode: elf64lppc
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om
elf_k1om
```
and therefore fails.
I'm on an x86_64 Linux and obviously my `GNU ld version 2.23.52.0.1-55.el7
20130226` doesn't support Power :-(
http://reviews.llvm.org/D21851
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits