Merge branch 'inlinec' into marshall
* inlinec: alien.inline.compiler: changed windows compiler optionsdb4
commit
0d88577890
|
@ -27,24 +27,32 @@ SYMBOL: C++
|
|||
|
||||
HOOK: compiler os ( lang -- str )
|
||||
|
||||
M: word compiler ( lang -- str )
|
||||
M: word compiler
|
||||
{
|
||||
{ C [ "gcc" ] }
|
||||
{ C++ [ "g++" ] }
|
||||
} case ;
|
||||
|
||||
M: openbsd compiler ( lang -- str )
|
||||
M: openbsd compiler
|
||||
{
|
||||
{ C [ "gcc" ] }
|
||||
{ C++ [ "eg++" ] }
|
||||
} case ;
|
||||
|
||||
M: windows compiler
|
||||
{
|
||||
{ C [ "gcc" ] }
|
||||
{ C++ [ "gcc" ] }
|
||||
} case ;
|
||||
|
||||
HOOK: compiler-descr os ( lang -- descr )
|
||||
|
||||
M: word compiler-descr compiler 1array ;
|
||||
M: macosx compiler-descr
|
||||
call-next-method cpu x86.64?
|
||||
[ { "-arch" "x86_64" } append ] when ;
|
||||
M: windows compiler-descr
|
||||
call-next-method { "-x" "c++" } append ;
|
||||
|
||||
HOOK: link-descr os ( -- descr )
|
||||
|
||||
|
@ -52,6 +60,7 @@ M: word link-descr { "-shared" "-o" } ;
|
|||
M: macosx link-descr
|
||||
{ "-g" "-prebind" "-dynamiclib" "-o" }
|
||||
cpu x86.64? [ { "-arch" "x86_64" } prepend ] when ;
|
||||
M: windows link-descr { "-lstdc++" "-o" } ;
|
||||
|
||||
<PRIVATE
|
||||
: src-suffix ( lang -- str )
|
||||
|
|
Loading…
Reference in New Issue