CELIX-347: Using build options for ADDRESS SANTIZE
Project: http://git-wip-us.apache.org/repos/asf/celix/repo Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/e0ab154b Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/e0ab154b Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/e0ab154b Branch: refs/heads/release/celix-2.0.0 Commit: e0ab154b7e189537bd6ec395300b678bd9e5bf5c Parents: b13a5f8 Author: Pepijn Noltes <[email protected]> Authored: Tue Feb 16 15:53:46 2016 +0100 Committer: Pepijn Noltes <[email protected]> Committed: Tue Feb 16 15:53:46 2016 +0100 ---------------------------------------------------------------------- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/celix/blob/e0ab154b/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 3e8b170..8f8042a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,9 +74,11 @@ before_script: - export BUILD_OPTIONS_OSX=" \ -DBUILD_RSA_REMOTE_SERVICE_ADMIN_SHM=OFF \ -DBUILD_RSA_DISCOVERY_SHM=OFF " + - export BUILD_OPTIONS_SANITIZE=" -DENABLE_ADDRESS_SANITIZER=ON" script: - - if [ "$SANITIZE" == 1 ]; then export CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 CFLAGS="-lasan -fsanitize=address" CXXFLAGS="-lasan -fsanitize=address" ASAN_OPTIONS="symbolize=1" ASAN_SYMBOLIZER_PATH="/usr/local/clang-3.4/bin/llvm-symbolizer"; fi + #- if [ "$SANITIZE" == 1 ]; then export CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 CFLAGS="-lasan -fsanitize=address" CXXFLAGS="-lasan -fsanitize=address" ASAN_OPTIONS="symbolize=1" ASAN_SYMBOLIZER_PATH="/usr/local/clang-3.4/bin/llvm-symbolizer"; fi + - if [ "$SANITIZE" == 1 ]; then export BUILD_OPTIONS="${BUILD_OPTIONS} ${BUILD_OPTIONS_SANITIZE}"; fi # the following setup is broken: # RSA_DISCOVERY_SHM is only working on linux, but both compilers (see CELIX-277) # RSA_SHM is only working on linux, but both compilers (see CELIX-277)
