[llvm-shlib] Fix windows build failed while llvm non-standalone building.
authorQiaojin.Bao <qiaojin.bao@amd.com>
Mon, 18 Oct 2021 09:34:30 +0000 (17:34 +0800)
committerDavid Stuttard <david.stuttard@amd.com>
Tue, 19 Oct 2021 08:10:11 +0000 (09:10 +0100)
commitcf65271e462f0626157a06f2f3a9615b4987c24e
tree576e8b728fb58a02f575bbea9836c28fb416a77f
parent408e6de8c09fc7e71329199947e977fe1c40caf1
[llvm-shlib] Fix windows build failed while llvm non-standalone building.

While build llvm-project as a sub-project on windows, met a build error:
libllvm-c.exports /llvm/bin\llvm-nm.exe: error: ...builds/rel64ninja/./lib/LLVMDemangle.lib: no such file or directory
The libllvm-c.exports, libllvm-c.args, and lib/*.lib should under LLVM_BINARY_DIR, using CMAKE_BINARY_DIR will cause 'no such file' error while llvm-project built as a sub-project.
llvm/tools/llvm-shlib/CMakeLists.txt