[PATCH] Enable building of sanitizers on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Apr 9 07:17:24 PDT 2014


  As of rL205847, it runs 'make check-all' with no unexpected failures on FreeBSD 9.2 so I propose that we re-apply this patch.

  The config used for the build is this:

    .
    # we have to install these from ports as the packages versions are too old
    cd /usr/ports/devel/subversion
    sudo make BATCH=1 install clean

    cd /usr/ports/devel/libc++
    sudo make BATCH=1
    sudo make PREFIX=/usr install clean

    cd /usr/src/lib/libcxxrt
    sudo make
    sudo make install clean

    cd /usr/ports/shells/bash
    sudo make BATCH=1 install clean

    cd /usr/ports/textproc/gnugrep
    sudo make BATCH=1 install clean

    wget -c ftp://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz
    ./configure --prefix=/usr --enable-language=c,c++
    gmake
    sudo gmake install

    # these are necessary to pass LLVM :: BugPoint/compile-custom.ll
    sudo pkg install gcc
    sudo pkg install python

    CC=clang CXX=clang++ cmake \
        -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" \
        -DCMAKE_EXE_LINKER_FLAGS="-lcxxrt" \
        -DCMAKE_CXX_COMPILER_FORCED=1

http://reviews.llvm.org/D2827






More information about the llvm-commits mailing list