All checks were successful
continuous-integration/drone/push Build is passing
reviewed-on: #9 Co-authored-by: light7734 <light7734@tuta.io> Co-committed-by: light7734 <light7734@tuta.io>
25 lines
1 KiB
Bash
Executable file
25 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
cd $(git rev-parse --show-toplevel)/
|
|
rm -rf ./build
|
|
|
|
conan build . \
|
|
-c tools.system.package_manager:mode=install \
|
|
-c tools.cmake.cmaketoolchain:generator=Ninja \
|
|
-c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_lsan/include/c++/v1/", "-fsanitize=leak"]' \
|
|
-c tools.build:sharedlinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \
|
|
-c tools.build:exelinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \
|
|
-c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \
|
|
-c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
|
|
-s build_type=Release \
|
|
-s compiler=clang \
|
|
-s compiler.version=20 \
|
|
-s compiler.libcxx=libc++ \
|
|
-o use_mold=True \
|
|
--build=missing
|
|
|
|
for test in $(find ./build -type f -name '*_tests' -executable); do
|
|
echo "Running $test"
|
|
"$test"
|
|
done
|