cmake-args: -DWITH_CHORBA=OFF
codecov: ubuntu_gcc_no_chorba
- - name: Ubuntu GCC No CTZLL
- os: ubuntu-latest
- compiler: gcc
- cxx-compiler: g++
- cmake-args: -DWITH_OPTIM=OFF -DHAVE_BUILTIN_CTZLL=OFF
- codecov: ubuntu_gcc_no_ctzll
-
- - name: Ubuntu GCC No CTZ
- os: ubuntu-latest
- compiler: gcc
- cxx-compiler: g++
- cmake-args: -DWITH_OPTIM=OFF -DHAVE_BUILTIN_CTZLL=OFF -DHAVE_BUILTIN_CTZ=OFF
- codecov: ubuntu_gcc_no_ctz
-
- name: Ubuntu GCC SSE2 UBSAN
os: ubuntu-latest
compiler: gcc
endif()
set(CMAKE_REQUIRED_FLAGS)
-#
-# check for __builtin_ctz() support in the compiler
-#
-set(CMAKE_REQUIRED_FLAGS ${ZNOLTOFLAG})
-check_c_source_compiles(
- "int main(void) {
- unsigned int zero = 0;
- long test = __builtin_ctz(zero);
- (void)test;
- return 0;
- }"
- HAVE_BUILTIN_CTZ
-)
-if(HAVE_BUILTIN_CTZ)
- add_definitions(-DHAVE_BUILTIN_CTZ)
-endif()
-set(CMAKE_REQUIRED_FLAGS)
-
-#
-# check for __builtin_ctzll() support in the compiler
-#
-set(CMAKE_REQUIRED_FLAGS ${ZNOLTOFLAG})
-check_c_source_compiles(
- "int main(void) {
- unsigned int zero = 0;
- long test = __builtin_ctzll(zero);
- (void)test;
- return 0;
- }"
- HAVE_BUILTIN_CTZLL
-)
-if(HAVE_BUILTIN_CTZLL)
- add_definitions(-DHAVE_BUILTIN_CTZLL)
-endif()
-set(CMAKE_REQUIRED_FLAGS)
-
#
# check for ptrdiff_t support
#
echo "Checking for __builtin_assume_aligned() ... No." | tee -a configure.log
fi
-# Check for __builtin_ctz() support in compiler
-cat > $test.c << EOF
-long f(unsigned int x) { return __builtin_ctz(x); }
-int main(void) { return 0; }
-EOF
-if try ${CC} ${CFLAGS} $test.c $LDSHAREDLIBC; then
- echo "Checking for __builtin_ctz ... Yes." | tee -a configure.log
- CFLAGS="$CFLAGS -DHAVE_BUILTIN_CTZ"
- SFLAGS="$SFLAGS -DHAVE_BUILTIN_CTZ"
-else
- echo "Checking for __builtin_ctz ... No." | tee -a configure.log
-fi
-
-# Check for __builtin_ctzll() support in compiler
-cat > $test.c << EOF
-long f(unsigned long long x) { return __builtin_ctzll(x); }
-int main(void) { return 0; }
-EOF
-if try ${CC} ${CFLAGS} $test.c $LDSHAREDLIBC; then
- echo "Checking for __builtin_ctzll ... Yes." | tee -a configure.log
- CFLAGS="$CFLAGS -DHAVE_BUILTIN_CTZLL"
- SFLAGS="$SFLAGS -DHAVE_BUILTIN_CTZLL"
-else
- echo "Checking for __builtin_ctzll ... No." | tee -a configure.log
-fi
-
check_avx2_intrinsics() {
# Check whether compiler supports AVX2 intrinsics
cat > $test.c << EOF