cleanup the CC setting, only leave in there what is at least semi-officially supported

This commit is contained in:
Andreas Rumpf 2020-05-06 15:37:26 +02:00
commit 1b2b32169a
2 changed files with 2 additions and 122 deletions

View file

@ -138,16 +138,6 @@ compiler clang:
result.compilerExe = "clang" result.compilerExe = "clang"
result.cppCompiler = "clang++" result.cppCompiler = "clang++"
# Zig cc (Clang) C/C++ Compiler
compiler zig:
result = clang() # Uses settings from llvmGcc
result.name = "zig"
result.compilerExe = "zig"
result.cppCompiler = "zig"
result.compileTmpl = "cc " & result.compileTmpl
result.linkTmpl = "cc " & result.linkTmpl
# Microsoft Visual C/C++ Compiler # Microsoft Visual C/C++ Compiler
compiler vcc: compiler vcc:
result = ( result = (
@ -196,32 +186,6 @@ compiler icc:
result.compilerExe = "icc" result.compilerExe = "icc"
result.linkerExe = "icc" result.linkerExe = "icc"
# Local C Compiler
compiler lcc:
result = (
name: "lcc",
objExt: "obj",
optSpeed: " -O -p6 ",
optSize: " -O -p6 ",
compilerExe: "lcc",
cppCompiler: "",
compileTmpl: "$options $include -Fo$objfile $file",
buildGui: " -subsystem windows",
buildDll: " -dll",
buildLib: "", # XXX: not supported yet
linkerExe: "lcclnk",
linkTmpl: "$options $buildgui $builddll -O $exefile $objfiles",
includeCmd: " -I",
linkDirCmd: "", # XXX: not supported yet
linkLibCmd: "", # XXX: not supported yet
debug: " -g5 ",
pic: "",
asmStmtFrmt: "_asm{$n$1$n}$n",
structStmtFmt: "$1 $2",
produceAsm: "",
cppXsupport: "",
props: {})
# Borland C Compiler # Borland C Compiler
compiler bcc: compiler bcc:
result = ( result = (
@ -249,58 +213,6 @@ compiler bcc:
props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard,
hasAttribute}) hasAttribute})
# Digital Mars C Compiler
compiler dmc:
result = (
name: "dmc",
objExt: "obj",
optSpeed: " -ff -o -6 ",
optSize: " -ff -o -6 ",
compilerExe: "dmc",
cppCompiler: "",
compileTmpl: "-c $options $include -o$objfile $file",
buildGui: " -L/exet:nt/su:windows",
buildDll: " -WD",
buildLib: "", # XXX: not supported yet
linkerExe: "dmc",
linkTmpl: "$options $buildgui $builddll -o$exefile $objfiles",
includeCmd: " -I",
linkDirCmd: "", # XXX: not supported yet
linkLibCmd: "", # XXX: not supported yet
debug: " -g ",
pic: "",
asmStmtFrmt: "__asm{$n$1$n}$n",
structStmtFmt: "$3$n$1 $2",
produceAsm: "",
cppXsupport: "",
props: {hasCpp})
# Watcom C Compiler
compiler wcc:
result = (
name: "wcc",
objExt: "obj",
optSpeed: " -ox -on -6 -d0 -fp6 -zW ",
optSize: "",
compilerExe: "wcl386",
cppCompiler: "",
compileTmpl: "-c $options $include -fo=$objfile $file",
buildGui: " -bw",
buildDll: " -bd",
buildLib: "", # XXX: not supported yet
linkerExe: "wcl386",
linkTmpl: "$options $buildgui $builddll -fe=$exefile $objfiles ",
includeCmd: " -i=",
linkDirCmd: "", # XXX: not supported yet
linkLibCmd: "", # XXX: not supported yet
debug: " -d2 ",
pic: "",
asmStmtFrmt: "__asm{$n$1$n}$n",
structStmtFmt: "$1 $2",
produceAsm: "",
cppXsupport: "",
props: {hasCpp})
# Tiny C Compiler # Tiny C Compiler
compiler tcc: compiler tcc:
result = ( result = (
@ -327,33 +239,6 @@ compiler tcc:
cppXsupport: "", cppXsupport: "",
props: {hasSwitchRange, hasComputedGoto, hasGnuAsm}) props: {hasSwitchRange, hasComputedGoto, hasGnuAsm})
# Pelles C Compiler
compiler pcc:
# Pelles C
result = (
name: "pcc",
objExt: "obj",
optSpeed: " -Ox ",
optSize: " -Os ",
compilerExe: "cc",
cppCompiler: "",
compileTmpl: "-c $options $include -Fo$objfile $file",
buildGui: " -SUBSYSTEM:WINDOWS",
buildDll: " -DLL",
buildLib: "", # XXX: not supported yet
linkerExe: "cc",
linkTmpl: "$options $buildgui $builddll -OUT:$exefile $objfiles",
includeCmd: " -I",
linkDirCmd: "", # XXX: not supported yet
linkLibCmd: "", # XXX: not supported yet
debug: " -Zi ",
pic: "",
asmStmtFrmt: "__asm{$n$1$n}$n",
structStmtFmt: "$1 $2",
produceAsm: "",
cppXsupport: "",
props: {})
# Your C Compiler # Your C Compiler
compiler ucc: compiler ucc:
result = ( result = (
@ -386,14 +271,9 @@ const
nintendoSwitchGCC(), nintendoSwitchGCC(),
llvmGcc(), llvmGcc(),
clang(), clang(),
zig(),
lcc(),
bcc(), bcc(),
dmc(),
wcc(),
vcc(), vcc(),
tcc(), tcc(),
pcc(),
ucc(), ucc(),
icl(), icl(),
icc(), icc(),

View file

@ -164,8 +164,8 @@ type
disabledSf, writeOnlySf, readOnlySf, v2Sf disabledSf, writeOnlySf, readOnlySf, v2Sf
TSystemCC* = enum TSystemCC* = enum
ccNone, ccGcc, ccNintendoSwitch, ccLLVM_Gcc, ccCLang, ccZig, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc, ccNone, ccGcc, ccNintendoSwitch, ccLLVM_Gcc, ccCLang, ccBcc, ccVcc,
ccTcc, ccPcc, ccUcc, ccIcl, ccIcc, ccClangCl ccTcc, ccUcc, ccIcl, ccIcc, ccClangCl
ExceptionSystem* = enum ExceptionSystem* = enum
excNone, # no exception system selected yet excNone, # no exception system selected yet