diff options
author | Ali Abrar <ali.abrar@obsidian.systems> | 2024-05-15 22:41:09 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2024-05-26 10:55:56 -0400 |
commit | 888dee445d72fa292f52bd477950b2eaf3ee8c3e (patch) | |
tree | 0d8bedc24cf778f63b18ec1a302ca33ace1463db /lib | |
parent | ad6fa01c066f86f233f82023bd4b47431937b3e9 (diff) | |
download | nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.tar nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.tar.gz nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.tar.bz2 nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.tar.lz nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.tar.xz nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.tar.zst nixlib-888dee445d72fa292f52bd477950b2eaf3ee8c3e.zip |
openbsd: init at 7.5
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/default.nix | 1 | ||||
-rw-r--r-- | lib/systems/examples.nix | 5 | ||||
-rw-r--r-- | lib/systems/parse.nix | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index fbd6c323bf42..d37ff720edce 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -93,6 +93,7 @@ let else if final.isAndroid then "bionic" else if final.isLinux /* default */ then "glibc" else if final.isFreeBSD then "fblibc" + else if final.isOpenBSD then "oblibc" else if final.isNetBSD then "nblibc" else if final.isAvr then "avrlibc" else if final.isGhcjs then null diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 8a3726f36968..79ec4461e419 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -342,6 +342,11 @@ rec { useLLVM = true; }; + x86_64-openbsd = { + config = "x86_64-unknown-openbsd"; + useLLVM = true; + }; + # # WASM # diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index 4890912d7fed..1d7c95943a79 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -469,6 +469,7 @@ rec { elem (elemAt l 2) [ "wasi" "redox" "mmixware" "ghcjs" "mingw32" ] || hasPrefix "freebsd" (elemAt l 2) || hasPrefix "netbsd" (elemAt l 2) || + hasPrefix "openbsd" (elemAt l 2) || hasPrefix "genode" (elemAt l 2) then { cpu = elemAt l 0; |