Open srl295 opened 10 months ago
Workaround:
$ core/build.sh test:mac-$(uname -m)
This is a good idea. Mac and Windows are complicated because they need multiple architectures. For Linux, we have just supported current-arch but that is a little bit limiting. Let's discuss in 18.0.
core/build.sh
supports:arch
on Linux meaning "current architecture".We should support this on mac and windows also. Something like this:
Then we could just run
core/build.sh test:arch
(which is the command I usually run) and it would work on linux/win/mac the same.I'd be fine with it being a synonym, wouldn't need to generate
core/build/arch
on a mac for example.For that matter,
arch
on linux would be better off creatingcore/build/linux-$(uname -m)/…
which would becore/build/linux-x86_64/
for example. Thenarch
remains a pseudo-target on all 3 platforms, and whateveruname -m
returns becomes the calculated "current architecture" for linux. (x86_64, aarch64, …)Caveat I don't really understand how the architecture selection works within build.sh so I might be talking through my hat here!
Could also have
:current
instead as an alias, which would select:arch
on linux.