diff mbox

[for-4.7,5/5] travis: add an alias for gcc when using clang

Message ID 1460744841-78382-6-git-send-email-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monné April 15, 2016, 6:27 p.m. UTC
In order to prevent it's usage. Since the tests are run on a Linux system
gcc is always present, so it's hard to detect if gcc is used in the clang
build.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Doug Goldstein <cardoe@cardoe.com>
---
 .travis.yml | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index 741a8ab..a6688cc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -80,6 +80,7 @@  addons:
 before_script:
     - export CXX=${CC/cc/++}
     - export CXX=${CXX/clang/clang++}
+    - [ "x${clang}" = "xy" ] && alias gcc=false
 script:
     - ( [ "x${RANDCONFIG}" = "xy" ] && ( make -C xen randconfig )
       || exit 0 )