This patch adds Windows support for a few of the llvm-config commands,
including cflags, ldflags, libs, and system-libs.
Currently llvm-config is untested, so this patch adds tests for the
commands that it fixes as well.
Paths
| Differential D16762
llvm-config: Add preliminary Windows support ClosedPublic Authored by • ehsan on Jan 31 2016, 4:41 PM.
Details Summary This patch adds Windows support for a few of the llvm-config commands, Currently llvm-config is untested, so this patch adds tests for the
Diff Detail
Event Timeline• ehsan updated this object. rnk edited edge metadata. Comment Actionslgtm
This revision is now accepted and ready to land.Feb 8 2016, 3:31 PM Closed by commit rL260263: llvm-config: Add preliminary Windows support (authored by • ehsan). · Explain WhyFeb 9 2016, 11:45 AM This revision was automatically updated to reflect the committed changes. Comment Actions Is this the direction that llvm-config emits "native" DirSep? In my curiosity, who is an user to use native paths of llvm-config? I suggest to add a flag like "--native", or "--dos", to change the behavior. Comment Actions Sorry, I misunderstood that the behavior weren't just for MSVC host. It is better.
Revision Contents
Diff 47348 llvm/trunk/lib/Support/CMakeLists.txt
llvm/trunk/test/tools/llvm-config/cflags.test
llvm/trunk/test/tools/llvm-config/ldflags.test
llvm/trunk/test/tools/llvm-config/libs.test
llvm/trunk/test/tools/llvm-config/system-libs.test
llvm/trunk/test/tools/llvm-config/system-libs.windows.test
llvm/trunk/tools/llvm-config/CMakeLists.txt
llvm/trunk/tools/llvm-config/llvm-config.cpp
llvm/trunk/utils/llvm-build/llvmbuild/main.py
|
It confuses cross compilation, due to r252532. http://reviews.llvm.org/D13198
I will fix it later.