Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Dec 14, 2012

This adds support for the Unlink linker on Win32, which comes in handy on since Optlink likes to crash all the time (Unilink also creates smaller binaries).

@alexrp
Copy link
Contributor

alexrp commented Dec 14, 2012

What we need is two options:

  • --linker-path: Path to the linker program.
  • --linker-type: Linker interface (MSVC link, GNU ld, Optlink, etc...).

@alexrp
Copy link
Contributor

alexrp commented Dec 14, 2012

(I don't particularly care about the option names, though, so long as they make sense.)

@@ -39,6 +46,27 @@ else

private string compiler = defaultCompiler;

version (Windows)
private enum defaultLinker = Linker.optlink;
else version (posix)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posix, not posix.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's the capitalization of linux vs Posix that tricked me.

@ghost ghost closed this Dec 26, 2012
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants