Open ghost opened 2 years ago
This is occ.cfg:
-- Command lines
cc: occ /! $cflags $includes $gc_includes /c $c
link: occ /! $lflags_gui $lflags /oname $exe $objs $lflags_threads $libs $gc_libs
-- File extensions
obj: .o
exe: .exe
-- Variables
#ifdef EIF_WORKBENCH
cflags:
lflags:
#else
cflags: /O2
lflags:
#endif
#ifdef EIF_CONSOLE
lflags_gui: /Wc
#else
lflags_gui: /Ww
#endif
#ifdef GE_USE_BOEHM_GC
gc_includes: /I$BOEHM_GC\include /I$BOEHM_GC\include\gc
gc_libs: $BOEHM_GC\lib\libgc.l
#else
gc_includes:
gc_libs:
#endif
#ifdef GE_USE_THREADS
lflags_threads:
#else
lflags_threads:
#endif
This is what I added to bootstrap.bat:
...
if .%CC%. == .occ. goto occ
...
:occ
set CC=occ
set LD=occ
set CFLAGS=/! /O2
set LFLAGS=/!
set LFLAG_OUT=/oname
set LLIBS=
set OBJ=.o
echo occ > %GOBO%\tool\gec\config\c\default.cfg
goto c_compilation
...
It's another endeavor, don't confuse with the previous endeavor with BCC of me.
Here is this compiler: https://github.com/LADSoft/OrangeC
I have created occ.cfg and modified bootstrap.bat to add occ. I could run bootstrapping but it failed with exactly the same error like with BCC: https://github.com/gobo-eiffel/gobo/issues/56
I think creating occ.cfg and modifying bootstrap.bat are not enough, it needs you to add support for it to gec itself @ebezault
Please help.