|
|
Home » Developing U++ » UppHub » Upp package binding for LLVM/Clang library (libclang)
Re: Upp package binding for LLVM/Clang library (libclang) [message #40154 is a reply to message #30312] |
Mon, 24 June 2013 02:15 |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
There is new LLVM 3.3 version on 17 Jun 2013. The corresponding archives were updated.
At the moment of writing this message, there are no Clang v3.3 pre-built binaries for MinGW (as of 184675 revision). I managed to build it by excluding AArch64 LLVM target:
set CUR_DIR=%~p0
set GENERATOR="MinGW Makefiles"
set GENERATOR_DIR="%CUR_DIR%build\llvm_3_3"
set GENERATOR_FILES="%CUR_DIR%source\llvm_3_3"
set INSTALL_DIR="%CUR_DIR%install\llvm_3_3"
rem all targets, except AArch64, to exclude the error
set TARGETS_TO_BUILD="ARM;CppBackend;Hexagon;Mips;MBlaze;MSP430;NVPTX;PowerPC;Sparc;SystemZ;X86;XCore"
set GENERATOR_DEFINES=-DCMAKE_INSTALL_PREFIX:PATH=%INSTALL_DIR% -DCMAKE_BUILD_TYPE:STRING="RELEASE" -DLLVM_TARGETS_TO_BUILD:STRING=%TARGETS_TO_BUILD%
cd %GENERATOR_DIR%
cmake -G %GENERATOR% %GENERATOR_DEFINES% %GENERATOR_FILES%
mingw32-make
mingw32-make install/fast
To note: there is also possible to use "Ninja" CMake generator instead of "MinGW Makefiles" (for example, to use all CPU cores for building):
Toggle batch file
set CUR_DIR=%~p0
set GENERATOR="Ninja"
set GENERATOR_DIR="%CUR_DIR%build\llvm_3_3"
set GENERATOR_FILES="%CUR_DIR%source\llvm_3_3"
set INSTALL_DIR="%CUR_DIR%install\llvm_3_3"
rem all targets, except AArch64, to exclude the error
set TARGETS_TO_BUILD="ARM;CppBackend;Hexagon;Mips;MBlaze;MSP430;NVPTX;PowerPC;Sparc;SystemZ;X86;XCore"
set GENERATOR_DEFINES=-DCMAKE_INSTALL_PREFIX:PATH=%INSTALL_DIR% -DCMAKE_BUILD_TYPE:STRING="RELEASE" -DLLVM_TARGETS_TO_BUILD:STRING=%TARGETS_TO_BUILD%
cd %GENERATOR_DIR%
cmake -G %GENERATOR% %GENERATOR_DEFINES% %GENERATOR_FILES%
ninja
ninja install
To create "Ninja build system" from source code on Windows, just use configured "_start_here.bat" file from the above message (and re2c scanner generator binary, if needed):
cd ninja
python bootstrap.py --platform=mingw
[Updated on: Mon, 24 June 2013 03:57] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 05 14:35:21 CEST 2024
Total time taken to generate the page: 0.03049 seconds
|
|
|