-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* On NetBSD, compile against libLLVM installed as a package. * Support diff(1) implementations lacking the option --color. * Check for core dumps in compare_compilers.sh.
- Loading branch information
Showing
16 changed files
with
186 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cross-platform-actions/[email protected] | ||
env: | ||
PKG_PATH: 'https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/9.3/All' | ||
with: | ||
operating_system: netbsd | ||
version: '9.3' #TODO: bump to 10.0 | ||
environment_variables: PKG_PATH | ||
run: | | ||
sudo pkgin -y install clang libLLVM gmake bash diffutils && \ | ||
gmake && \ | ||
./runtests.sh --verbose && \ | ||
./runtests.sh --verbose --jou-flags "--verbose" && \ | ||
gmake clean && \ | ||
./doctest.sh && \ | ||
./compare_compilers.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# A call to the _jou_netbsd_startup() function is inserted to the | ||
# start of every Jou program when compiling for NetBSD. | ||
|
||
# On NetBSD, these std* things are macros | ||
# expanding to elements of the __sF array | ||
# of FILE structs. | ||
|
||
declare global __sF: byte[152][3] # sizeof(FILE) == 152 | ||
global stdin: void* | ||
global stdout: void* | ||
global stderr: void* | ||
|
||
def _jou_netbsd_startup() -> None: | ||
stdin = &__sF[0] | ||
stdout = &__sF[1] | ||
stderr = &__sF[2] | ||
|
||
# Jou uses __errno_location, | ||
# NetBSD has __ernno() | ||
|
||
declare __errno() -> int* | ||
def __errno_location() -> int*: | ||
return __errno() |
Oops, something went wrong.