[llvmlinux] Website: Manual_Build_Instructions

Sedat Dilek sedat.dilek at gmail.com
Tue Feb 3 23:54:39 UTC 2015


Hi,

I am planning to build a llvm-toolchain v3.6.0-rc2 on my own.

Gasping at [1] shows a wrong configure-parameter...
...
./configure --prefix=$(echo ~/llvm4linux)/out/llvm --enable-optimized
--disable-assertions --targets=x86,x86_64,arm
...

Looking at the source of llvmlinux-git says...

$ grep able-assertions -nr ./
./toolchain/clang/clang-from-source.mk:99:LLVM_OPTIMIZED        =
--enable-optimized --enable-assertions
./targets/x86_64/checkpoints/v3.14/config.mk:7:LLVM_OPTIMIZED
 = --enable-optimized --enable-assertions
./targets/x86_64/checkpoints/kernel-3.10-rc7/config.mk:7:LLVM_OPTIMIZED
        = --enable-optimized --enable-assertions
./targets/x86_64/checkpoints/kernel-3.13-rc4/config.mk:7:LLVM_OPTIMIZED
        = --enable-optimized --enable-assertions
./targets/x86_64/checkpoints/v3.3/config.mk:7:LLVM_OPTIMIZED
 = --enable-optimized --enable-assertions
./targets/nexus7/checkpoint/ckp1.mk:7:LLVM_OPTIMIZED            =
--enable-optimized --enable-assertions
./targets/nexus7/checkpoint/ckp3.mk:8:LLVM_OPTIMIZED            =
--enable-optimized --enable-assertions
./targets/nexus7/checkpoint/ckp2.mk:7:LLVM_OPTIMIZED            =
--enable-optimized --enable-assertions
./targets/rpi/checkpoint/ckp1.mk:7:LLVM_OPTIMIZED               =
--enable-optimized --enable-assertions
./targets/rpi/checkpoint/ckp3.mk:11:LLVM_OPTIMIZED              =
--enable-optimized --enable-assertions
./targets/rpi/checkpoint/ckp4.mk:11:LLVM_OPTIMIZED              =
--enable-optimized --enable-assertions
./targets/rpi/checkpoint/ckp2.mk:8:LLVM_OPTIMIZED               =
--enable-optimized --enable-assertions
./targets/x86_64_tiny/checkpoints/llvm3.3-linux040a0a3/config.mk:7:LLVM_OPTIMIZED
              = --enable-optimized --enable-assertions

So, this should be changed from "--disable-assertions" to
"--enable-assertions" on the website.

Regards,
- Sedat -

[1] http://llvm.linuxfoundation.org/index.php/Manual_Build_Instructions
-> "Checkout LLVM and clang"


More information about the LLVMLinux mailing list