scoop:scoop.core:0.1.0
src/compiler/environment.scoop
Selected production source · src/compiler/environment.scoop
1
package scoop.compiler3
import Option4
import String6
/**7
* Reads a SCOOP_-prefixed environment variable while compiling this Cone.8
* Missing values return None; an empty value returns Some("").9
* The name must be a constant String with the case-sensitive SCOOP_ prefix,10
* without '=' or NUL. Invalid names and non-Unicode values are compile errors.11
* Reads the compiler host environment, including when cross-compiling.12
* The result is embedded in the artifact; runtime environment changes do not13
* affect it. This intrinsic cannot be used as a function reference.14
*/15
@Intrinsic("compile_env")16
public fun env(name: String): Option<String>