|
|
@ -14,8 +14,7 @@ mkdir -p build && cd build
|
|
|
|
export LDFLAGS="-fuse-ld=lld"
|
|
|
|
export LDFLAGS="-fuse-ld=lld"
|
|
|
|
# -femulated-tls required due to an incompatibility between GCC and Clang
|
|
|
|
# -femulated-tls required due to an incompatibility between GCC and Clang
|
|
|
|
# TODO(lat9nq): If this is widespread, we probably need to add this to CMakeLists where appropriate
|
|
|
|
# TODO(lat9nq): If this is widespread, we probably need to add this to CMakeLists where appropriate
|
|
|
|
export CFLAGS="-femulated-tls"
|
|
|
|
export CXXFLAGS="-femulated-tls"
|
|
|
|
export CXXFLAGS="${CFLAGS}"
|
|
|
|
|
|
|
|
cmake .. \
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE="${PWD}/../CMakeModules/MinGWClangCross.cmake" \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE="${PWD}/../CMakeModules/MinGWClangCross.cmake" \
|
|
|
|