]> granicus.if.org Git - clang/commit
[Clang][Bundler] Use llvm-objcopy for creating fat object files
authorSergey Dmitriev <serguei.n.dmitriev@intel.com>
Mon, 26 Aug 2019 19:48:43 +0000 (19:48 +0000)
committerSergey Dmitriev <serguei.n.dmitriev@intel.com>
Mon, 26 Aug 2019 19:48:43 +0000 (19:48 +0000)
commitc9756de38dea38310fab3b6b9264d7d7a4142a32
tree4041d31272857fc24787480359b3ef68c9c2472e
parent1f2de81a89f2266dc8b996b211041f5d1909e46e
[Clang][Bundler] Use llvm-objcopy for creating fat object files

clang-offload-bundler currently uses partial linking for creating fat object files, but such technique cannot be used on Windows due to the absence of partial linking support in the linker. This patch changes implementation to use llvm-objcopy for merging device and host objects instead of doing partial linking. This is one step forward towards enabling OpenMP offload on Windows.

Differential Revision: https://reviews.llvm.org/D66485

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369955 91177308-0d34-0410-b5e6-96231b3b80d8
test/CMakeLists.txt
test/Driver/clang-offload-bundler.c
tools/clang-offload-bundler/CMakeLists.txt
tools/clang-offload-bundler/ClangOffloadBundler.cpp