diff options
author | Bart Van Assche <bvanassche@acm.org> | 2020-06-28 12:58:21 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-28 14:03:56 -0600 |
commit | 532eddd959281957a8cdb13b49e5215e0144fcda (patch) | |
tree | b0f7368ac39b8cd691413dcc3559373f409556fe /configure | |
parent | a865ad5415324824a09f66b7bf2ca13d5c10befa (diff) | |
download | liburing-532eddd959281957a8cdb13b49e5215e0144fcda.tar.gz |
configure: Use $CC and $CXX as default compilers if set
This change causes .travis.yml to use the compilers configured in the $CC
and $CXX variables. Additionally, make the configure script show the
compiler names.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -9,8 +9,8 @@ else TMPDIR1="/tmp" fi -cc=gcc -cxx=g++ +cc=${CC:-gcc} +cxx=${CXX:-g++} for opt do optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)') @@ -315,7 +315,9 @@ if test "$has_cxx" = "yes"; then fi echo "CC=$cc" >> $config_host_mak +print_config "CC" "$cc" echo "CXX=$cxx" >> $config_host_mak +print_config "CXX" "$cxx" # generate compat.h compat_h="src/include/liburing/compat.h" |