Skip to content

Instantly share code, notes, and snippets.

@uasi
Created June 26, 2010 09:48
Show Gist options
  • Save uasi/453937 to your computer and use it in GitHub Desktop.
Save uasi/453937 to your computer and use it in GitHub Desktop.
diff --git a/src/glue/run.pir b/src/glue/run.pir
index 3ff1a93..1da169c 100644
--- a/src/glue/run.pir
+++ b/src/glue/run.pir
@@ -105,6 +105,12 @@ of the compilation unit.
$P2 = '&CREATE_HASH_FROM_LOW_LEVEL'(env)
set_hll_global '%ENV', $P2
+ # Set up $*OSNAME
+ .local pmc osname
+ $S0 = sysinfo 4
+ osname = box $S0
+ set_hll_global ['PROCESS'], '$OSNAME', osname
+
# INIT time
'!fire_phasers'('INIT')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment