Skip to content

Commit

Permalink
Merge pull request #8862 from dlang/makefiles
Browse files Browse the repository at this point in the history
Merge Makefiles
  • Loading branch information
ibuclaw authored Dec 18, 2023
2 parents 0612f55 + 5b9a497 commit 881cd47
Show file tree
Hide file tree
Showing 12 changed files with 750 additions and 2,214 deletions.
14 changes: 7 additions & 7 deletions .circleci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ setup_repos()
# run unittest with coverage
coverage()
{
make -f posix.mak clean
make clean
# remove all existing coverage files (just in case)
find . -name "*.lst" -type f -delete

# Coverage information of the test runner can be missing for some template instatiations.
# https://issues.dlang.org/show_bug.cgi?id=16397
# ENABLE_COVERAGE="1" make -j"$N" -f posix.mak MODEL=$MODEL unittest-debug
# ENABLE_COVERAGE="1" make -j"$N" MODEL=$MODEL unittest-debug

# So instead we run all tests individually (hoping that that doesn't break any tests).
# -cov is enabled by the %.test target itself
make -j"$N" -f posix.mak BUILD=$BUILD $(find std etc -name "*.d" | sed "s/[.]d$/.test/")
make -j"$N" BUILD=$BUILD $(find std etc -name "*.d" | sed "s/[.]d$/.test/")

# Remove coverage information from lines with non-deterministic coverage.
# These lines are annotated with a comment containing "nocoverage".
Expand All @@ -124,12 +124,12 @@ publictests()
{
source "$(CURL_USER_AGENT=\"$CURL_USER_AGENT\" bash ~/dlang/install.sh dmd-$HOST_DMD_VER --activate)"

make -f posix.mak -j"$N" publictests DUB="$DUB" BUILD=$BUILD
make -f posix.mak -j"$N" publictests DUB="$DUB" BUILD=$BUILD NO_BOUNDSCHECKS=1
make -j"$N" publictests DUB="$DUB" BUILD=$BUILD
make -j"$N" publictests DUB="$DUB" BUILD=$BUILD NO_BOUNDSCHECKS=1

# run -betterC tests
make -f posix.mak test_extractor # build in single-threaded mode
make -f posix.mak -j"$N" betterc
make test_extractor # build in single-threaded mode
make -j"$N" betterc
}

# test stdx dub package
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ generated
GNUmakefile
.DS_Store
.*.sw*
Makefile
*.lst

temp/
Expand Down
Loading

0 comments on commit 881cd47

Please sign in to comment.