]> granicus.if.org Git - icu/commitdiff
ICU-20083 Enable Address Sanitizer for ICU4C Build.
authorAndy Heninger <andy.heninger@gmail.com>
Tue, 21 Aug 2018 19:56:10 +0000 (12:56 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:38 +0000 (14:27 -0700)
.travis.yml

index b3d667d8d8dd83abc6322d6405507cc78c6093e7..e31b1e5182408053e8bf55b112afdbd79b5ff23d 100644 (file)
@@ -11,20 +11,20 @@ matrix:
       compiler: gcc
       script:   cd icu4c/source && ./runConfigureICU Linux && make -j2 check
 
-    - language: cpp
-      env:      BUILD=ICU4C_CLANG
-      compiler: clang
-      script:   cd icu4c/source && ./runConfigureICU Linux && make -j2 check
-
     - language: cpp
       env:      BUILD=MACINTOSH
       os:       osx
       compiler: clang
       script:   cd icu4c/source && ./runConfigureICU MacOSX && make -j2 check
 
+    # Clang Linux with address sanitizer.
+    # Note - the 'sudo: true' option forces Travis to use a Virtual machine on GCE instead of
+    #        a Container on EC2 or Packet. Asan builds of ICU fail otherwise.
     - language: cpp
+      env:      BUILD=ICU4C_CLANG_ASAN
       os:       linux
       dist:     trusty
+      sudo:     true
       compiler: clang
       addons:
           apt:
@@ -33,8 +33,5 @@ matrix:
                   - llvm-toolchain-trusty-5.0
               packages:
                   - clang-5.0
-      env:
-          - BUILD=ASAN
       script:
-          - echo not yet
-          # - cd icu4c/source && CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./runConfigureICU --enable-debug --disable-release Linux --disable-renaming && make -j2 check
+          - cd icu4c/source && CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./runConfigureICU --enable-debug --disable-release Linux --disable-renaming && make -j2 check