Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm trying to use an unsupported compiler #58

Open
ghost opened this issue Oct 15, 2022 · 2 comments
Open

I'm trying to use an unsupported compiler #58

ghost opened this issue Oct 15, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2022

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: #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
Copy link
Author

ghost commented Oct 15, 2022

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
Copy link
Author

ghost commented Oct 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants