From 1b2b32169a5d8089a50509136a31b5ceb3773994 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 6 May 2020 15:37:26 +0200 Subject: [PATCH] cleanup the CC setting, only leave in there what is at least semi-officially supported --- compiler/extccomp.nim | 120 ------------------------------------------ compiler/options.nim | 4 +- 2 files changed, 2 insertions(+), 122 deletions(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index fe48093dd4..23cbc482c5 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -138,16 +138,6 @@ compiler clang: result.compilerExe = "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 compiler vcc: result = ( @@ -196,32 +186,6 @@ compiler icc: result.compilerExe = "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 compiler bcc: result = ( @@ -249,58 +213,6 @@ compiler bcc: props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, 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 compiler tcc: result = ( @@ -327,33 +239,6 @@ compiler tcc: cppXsupport: "", 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 compiler ucc: result = ( @@ -386,14 +271,9 @@ const nintendoSwitchGCC(), llvmGcc(), clang(), - zig(), - lcc(), bcc(), - dmc(), - wcc(), vcc(), tcc(), - pcc(), ucc(), icl(), icc(), diff --git a/compiler/options.nim b/compiler/options.nim index 97cf435c55..caf3f65bd6 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -164,8 +164,8 @@ type disabledSf, writeOnlySf, readOnlySf, v2Sf TSystemCC* = enum - ccNone, ccGcc, ccNintendoSwitch, ccLLVM_Gcc, ccCLang, ccZig, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc, - ccTcc, ccPcc, ccUcc, ccIcl, ccIcc, ccClangCl + ccNone, ccGcc, ccNintendoSwitch, ccLLVM_Gcc, ccCLang, ccBcc, ccVcc, + ccTcc, ccUcc, ccIcl, ccIcc, ccClangCl ExceptionSystem* = enum excNone, # no exception system selected yet