Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: using backward compatible maps #61

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions make/pre-make.r3
Original file line number Diff line number Diff line change
Expand Up @@ -154,38 +154,38 @@ os-info: get-os-info
os: any [
select os-info 'ID
all [word? spec/os spec/os]
select #(
select make map! [
Macintosh: macos
Windows: windows
Linux: linux
OpenBSD: openbsd
) platform
] platform
]
syst: any [
; none, linux, win32, darwin, cuda, etc.
spec/sys
spec/kernel
select #(
select make map! [
macos: darwin
ios: darwin
windows: win32
linux: linux
openbsd: openbsd
) os
] os
]
abi: any [
; eabi, gnu, android, macho, elf, musl etc.
spec/target-abi
spec/abi
select #(
select make map! [
macos: macho
ios: macho
windows: pe
reactos: pe
beos: pe
linux: elf
;alpine: musl
) spec/os
] spec/os
]

product: any [spec/product 'Core]
Expand Down
2 changes: 1 addition & 1 deletion make/tools/utils.reb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ get-os-info: function[
][
tmp: copy ""
err: copy ""
out: copy #()
out: make map! 10
key: charset [#"A"-#"Z" #"_"]
enl: system/catalog/bitsets/crlf
whs: system/catalog/bitsets/whitespace
Expand Down
Loading