How to compile Pharo VM without image?

I already cloned the virtual machine and installed all the dependencies for my platform. Now I'm a bit confused, because a couple of leads suggests that the Pharo image should be run to generate C sources translated from Slang.

"Unix"
PharoVMBuilder buildUnix32.
"OSX"
PharoVMBuilder buildMacOSX32.
"Windows"
PharoVMBuilder buildWin32.

But how do you create a virtual machine when you cannot start the virtual machine on your platform? It sounds like a chicken and egg problem.

Does this mean that it is impossible to build a virtual machine if you cannot run the image on this platform?

+4
source share
2 answers

CI, Esteban, pharo-vm, . .

, c:\phs, . :

set(topDir "c:/phs/")
set(buildDir "c:/phs/build")
set(thirdpartyDir "${buildDir}/thirdparty")
set(platformsDir "c:/phs/platforms")
set(srcDir "c:/phs/src")
set(srcPluginsDir "${srcDir}/plugins")
set(srcVMDir "${srcDir}/vm")
set(platformName "win32")
set(targetPlatform ${platformsDir}/${platformName})
set(crossDir "${platformsDir}/Cross")
set(platformVMDir "${targetPlatform}/vm")
set(outputDir "c:/phs/results")

, , , CI. c:\phs\build\CMakeLists.txt :

  • -march =... ( , )
  • -g0,
  • -O2 ()
  • -DNDEBUG
  • -DDEBUGVM = 0 -DDEBUGVM = 1

, , script

cd /c/phs/build
bash build.sh
+4

Source: https://habr.com/ru/post/1531988/


All Articles