Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

run.sh

8 lines305 Bytes

1#!/bin/bash
2set -euo pipefail
3module_dir=$(cd "$(dirname "$0")/.." && pwd)
4output=$(mktemp -d)
5trap 'rm -rf "$output"' EXIT
6c++ -std=c++20 -O2 -Wall -Wextra -I "$module_dir/cpp" \
7 "$module_dir/cpp/Utf16ToUtf8.cpp" "$module_dir/tests/utf16-to-utf8.cpp" -o "$output/utf16-to-utf8"
8"$output/utf16-to-utf8"