[llvm-commits] Fix cmake for Hexagon cross compilers

Sebastian Pop spop at codeaurora.org
Tue Jul 3 20:42:41 PDT 2012


Hi,

here is a patch that allows us to use cmake to specify a cross
compiler for Hexagon.

In particular, the patch adds a missing case for the target Hexagon in
cmake/config-ix.cmake, and it moves LLVM_DEFAULT_TARGET_TRIPLE and TARGET_TRIPLE
variables from cmake/config-ix.cmake to the toplevel CMakeLists.txt to make them
available at configure time. Here is the command line that I have used to test
my patches:

$ cmake -G Ninja -D BUILD_SHARED_LIBS:BOOL=ON -D
LLVM_TARGETS_TO_BUILD:STRING=Hexagon -D
TARGET_TRIPLE:STRING=hexagon-unknown-linux-gnu -D
LLVM_DEFAULT_TARGET_TRIPLE:STRING=hexagon-unknown-linux-gnu -D
LLVM_TARGET_ARCH:STRING=hexagon-unknown-linux-gnu -D
LLVM_ENABLE_PIC:BOOL=OFF ..
$ ninja check

Ok to commit the attached patch?

Thanks,
Sebastian
-- 
Qualcomm Innovation Center, Inc is a member of Code Aurora Forum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-enable-Hexagon-target-from-cmake.patch
Type: application/octet-stream
Size: 3096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120703/252f5398/attachment.obj>


More information about the llvm-commits mailing list