mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 20:47:53 +00:00
Add linking options for tinycc backend (#24750)
### Issue When using `tcc` as backend to compile a trivial program ``` nim c --cc:tcc --skipCfg a.nim ``` , errors reported: ``` tcc: error: undefined symbol 'fabs' ``` ### Solution `fabs` belongs to libm. With these two options added, one can compile with an additional clib option: ``` nim c --cc:tcc --skipCfg --clib:m a.nim ```
This commit is contained in:
@@ -257,8 +257,8 @@ compiler tcc:
|
||||
linkerExe: "tcc",
|
||||
linkTmpl: "-o $exefile $options $buildgui $builddll $objfiles",
|
||||
includeCmd: " -I",
|
||||
linkDirCmd: "", # XXX: not supported yet
|
||||
linkLibCmd: "", # XXX: not supported yet
|
||||
linkDirCmd: " -L",
|
||||
linkLibCmd: " -l$1",
|
||||
debug: " -g ",
|
||||
pic: "",
|
||||
asmStmtFrmt: "asm($1);$n",
|
||||
|
||||
Reference in New Issue
Block a user