Skip to content

Commit

Permalink
[MbedTLS] Ignore type-limits warnings for non-intel platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Sep 16, 2020
1 parent fcad5c7 commit ce643c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions M/MbedTLS/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ fi
# enable MD4
sed "s|//#define MBEDTLS_MD4_C|#define MBEDTLS_MD4_C|" -i include/mbedtls/config.h
FLAGS=()
if [[ "${proc_family}" != intel ]]; then
FLAGS=(-DCMAKE_C_FLAGS="-Wno-type-limits")
fi
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=${prefix} \
-DCMAKE_TOOLCHAIN_FILE="${CMAKE_TARGET_TOOLCHAIN}" \
-DCMAKE_C_STANDARD=99 \
-DUSE_SHARED_MBEDTLS_LIBRARY=On \
"${FLAGS[@]}" \
..
make -j${nproc} && make install
"""
Expand Down

0 comments on commit ce643c4

Please sign in to comment.