Build script switch to generate either shell xor binary for bin/enso
#12014
Labels
--low-performance
-build-script
Category: build script
-compiler
p-high
Should be completed in the next sprint
The instant launching of Enso programs discussion describes needs for:
All these requests have one in common:
buildEngineDistribution
that generates shell launchersengine-runner/buildNativeImage
that adds/overridesbin/enso
orbin/enso.exe
engine-runner/buildNativeImage
The Switch
An environment variable would be a good switch and would play well with the CI as the case of ENSO_JAVA shows. Let's thus introduce
ENSO_LAUNCHER
which can have following valuesnative
debugnative
shell
based on these values it either executes the current copy of shell launchers or it skips this behavior and invokes
engine-runner/buildNativeImage
instead. Thedebugnative
variant shall include-ea
flag when invokingnative-image
- a mode needed for running Enso tests.After the change it should be possible to:
and see either only
enso
Unix executable orenso.exe
on Windows.Notes
ENSO_LAUNCHER
remainsshell
for now - e.g. release behavior remains unchagedENSO_LAUNCHER=debugnative
variable instead of invokingengine-runner/buildNativeImage
directlyThe text was updated successfully, but these errors were encountered: