Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build experiment. #246

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ help | head

uname

echo "Here 1"
cl.exe /std:c++20 test/single_file/printing.cc
cp test/single_file/printing.cc.expected temp.cc
cl.exe /std:c++20 temp.cc

DREDD_LLVM_TAG=$(./scripts/llvm_tag.sh)

case "$(uname)" in
Expand Down Expand Up @@ -80,6 +85,11 @@ case "$(uname)" in
;;
esac

echo "Here 2"
cl.exe /std:c++20 test/single_file/printing.cc
cp test/single_file/printing.cc.expected temp.cc
cl.exe /std:c++20 temp.cc

export PATH="${HOME}/bin:$PATH"

mkdir -p "${HOME}/bin"
Expand All @@ -94,6 +104,11 @@ pushd "${HOME}/bin"

popd

echo "Here 3"
cl.exe /std:c++20 test/single_file/printing.cc
cp test/single_file/printing.cc.expected temp.cc
cl.exe /std:c++20 temp.cc

case "$(uname)" in
"Linux")

Expand Down Expand Up @@ -127,11 +142,21 @@ pushd build
./src/libdreddtest/libdreddtest
popd

echo "Here 4"
cl.exe /std:c++20 test/single_file/printing.cc
cp test/single_file/printing.cc.expected temp.cc
cl.exe /std:c++20 temp.cc

cp build/src/dredd/dredd third_party/clang+llvm/bin/
DREDD_REPO_ROOT=$(pwd)
export DREDD_REPO_ROOT
export PATH=${PATH}:${DREDD_REPO_ROOT}/scripts

echo "Here 5"
cl.exe /std:c++20 test/single_file/printing.cc
cp test/single_file/printing.cc.expected temp.cc
cl.exe /std:c++20 temp.cc

case "$(uname)" in
"Linux")

Expand Down Expand Up @@ -233,6 +258,11 @@ case "$(uname)" in
# The C code generated by Dredd may require recent C/C++ support.
export DREDD_EXTRA_C_ARGS="/std:c17"
export DREDD_EXTRA_CXX_ARGS="/std:c++20"

echo "Here 6"
cl.exe /std:c++20 test/single_file/printing.cc
cp test/single_file/printing.cc.expected temp.cc
cl.exe /std:c++20 temp.cc

DREDD_SKIP_COPY_EXECUTABLE=1 ./scripts/check_single_file_tests.sh
;;
Expand Down
Loading