Skip to content

Commit

Permalink
dub: Add static builds, gitignore archives
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Jan 17, 2024
1 parent 312e640 commit 83c5dd2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,29 @@ __dummy.html
/docs/
/alicedbg
alicedbg-test-*
*.pdb
*.so
*.dylib
*.json
*.log
*.lst

# Executable objects
*.dll
*.a
*.lib
*.dylib
*.so
*.exe
*.o

# Debug objects
*.pdb
*.dbg

# Library archives and objects
*.lib
*.a
*.obj
*.lst
*.json
*.log
*.o

# Archives
*.zip
*.tar.*

# C headers
/include/
Expand Down
8 changes: 8 additions & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ buildType "release-nobounds" {
dflags "-betterC" platform="ldc"
}

# Compile in release mode with no bound checking as statically link.
buildType "release-nobounds-static" {
versions "Release" "ReleaseNobounds"
buildOptions "releaseMode" "optimize" "noBoundsCheck"
dflags "-betterC" "--static" platform="ldc"
dflags "-betterC" "-Wl,-static" platform="gdc"
}

#
# ANCHOR Unit tests
#
Expand Down

0 comments on commit 83c5dd2

Please sign in to comment.