Skip to content

Commit 136c41e

Browse files
committed
Build: using backward compatible maps
1 parent bea5d79 commit 136c41e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

make/pre-make.r3

+6-6
Original file line numberDiff line numberDiff line change
@@ -154,38 +154,38 @@ os-info: get-os-info
154154
os: any [
155155
select os-info 'ID
156156
all [word? spec/os spec/os]
157-
select #(
157+
select make map! [
158158
Macintosh: macos
159159
Windows: windows
160160
Linux: linux
161161
OpenBSD: openbsd
162-
) platform
162+
] platform
163163
]
164164
syst: any [
165165
; none, linux, win32, darwin, cuda, etc.
166166
spec/sys
167167
spec/kernel
168-
select #(
168+
select make map! [
169169
macos: darwin
170170
ios: darwin
171171
windows: win32
172172
linux: linux
173173
openbsd: openbsd
174-
) os
174+
] os
175175
]
176176
abi: any [
177177
; eabi, gnu, android, macho, elf, musl etc.
178178
spec/target-abi
179179
spec/abi
180-
select #(
180+
select make map! [
181181
macos: macho
182182
ios: macho
183183
windows: pe
184184
reactos: pe
185185
beos: pe
186186
linux: elf
187187
;alpine: musl
188-
) spec/os
188+
] spec/os
189189
]
190190

191191
product: any [spec/product 'Core]

make/tools/utils.reb

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ get-os-info: function[
157157
][
158158
tmp: copy ""
159159
err: copy ""
160-
out: copy #()
160+
out: make map! 10
161161
key: charset [#"A"-#"Z" #"_"]
162162
enl: system/catalog/bitsets/crlf
163163
whs: system/catalog/bitsets/whitespace

0 commit comments

Comments
 (0)