diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 09:44:47 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 09:44:47 +0200 |
commit | d10973adb00840631e5314ec902d502f15934801 (patch) | |
tree | a207854b0cf984815beb26bf2d71933ce566f6d7 /rod/extccomp.nim | |
parent | c441cdb64ca5394f74faadf76563bcfafeda18f4 (diff) | |
download | Nim-d10973adb00840631e5314ec902d502f15934801.tar.gz |
c2nim tool added
Diffstat (limited to 'rod/extccomp.nim')
-rwxr-xr-x | rod/extccomp.nim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rod/extccomp.nim b/rod/extccomp.nim index 6ca816eb1..d7b429339 100755 --- a/rod/extccomp.nim +++ b/rod/extccomp.nim @@ -50,7 +50,7 @@ const compilerExe: "gcc", compileTmpl: "-c $options $include -o $objfile $file", buildGui: " -mwindows", - buildDll: " -mdll", + buildDll: " -shared", linkerExe: "gcc", linkTmpl: "$options $buildgui $builddll -o $exefile $objfiles", includeCmd: " -I", @@ -65,7 +65,7 @@ const compilerExe: "llvm-gcc", compileTmpl: "-c $options $include -o $objfile $file", buildGui: " -mwindows", - buildDll: " -mdll", + buildDll: " -shared", linkerExe: "llvm-gcc", linkTmpl: "$options $buildgui $builddll -o $exefile $objfiles", includeCmd: " -I", @@ -225,7 +225,7 @@ const var ccompiler*: TSystemCC = ccGcc -const # the used compiler +const # the used compiler hExt* = "h" var cExt*: string = "c" # extension of generated C/C++ files @@ -490,7 +490,6 @@ proc CallCCompiler(projectfile: string) = generateScript(projectFile, script) proc genMappingFiles(list: TLinkedList): PRope = - result = nil var it = PStrEntry(list.head) while it != nil: appf(result, "--file:r\"$1\"$n", [toRope(AddFileExt(it.data, cExt))]) |