gobo icon indicating copy to clipboard operation
gobo copied to clipboard

I'm trying to use an unsupported compiler

Open ghost opened this issue 3 years ago • 2 comments

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.

ghost avatar Oct 15 '22 03:10 ghost

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

ghost avatar Oct 15 '22 03:10 ghost

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
...

ghost avatar Oct 15 '22 03:10 ghost