Skip to content

Commit

Permalink
build: Allow building/testing on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Jun 14, 2024
1 parent 01e7322 commit 4054a4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/env.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set -euo pipefail

system=$(uname)
if [[ $system == "Linux" ]]; then
if [[ $system == "Linux" || $system == "FreeBSD" ]]; then
EXT="so"
elif [[ $system == "Darwin" ]]; then
EXT="dylib"
Expand Down
5 changes: 3 additions & 2 deletions test-module/tests/main.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(error-file (make-temp-file "destructive-fn"))
(exit-code
(pcase system-type
((or 'darwin 'gnu/linux)
((or 'darwin 'gnu/linux 'berkeley-unix)
(call-process
"bash"
;; If VERBOSE, redirect subprocess's stdout to stderr
Expand All @@ -44,7 +44,8 @@
nil (list t error-file)
nil (if t/support-module-assertions-p
".\\bin\\fn-module-assertions.ps1"
".\\bin\\fn.ps1") name))))
".\\bin\\fn.ps1") name))
(_ (error "Unsupported system-type: %s" system-type))))
(error-string
(with-temp-buffer
(insert-file-contents error-file)
Expand Down

0 comments on commit 4054a4c

Please sign in to comment.