Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-lib Switch for ldmd2 #21

Closed
dsimcha opened this issue Nov 12, 2011 · 4 comments
Closed

-lib Switch for ldmd2 #21

dsimcha opened this issue Nov 12, 2011 · 4 comments

Comments

@dsimcha
Copy link

dsimcha commented Nov 12, 2011

The ldmd2 script, which is supposed to provide DMD-like command line flags to LDC, doesn't support building libraries using -lib. This is easy to work around and fix (just build individual object files and archive them manually), but it should be supported so that LDC can be a drop in replacement for DMD without any changes to build processes.

@bioinfornatics
Copy link
Contributor

yes, our plan is to do something like #4 (comment)
-lib for generate by default shared lib and maybe do -static-lib
But with have yet works on in ldc2 not discuss the better way to do that

@dsimcha
Copy link
Author

dsimcha commented Nov 13, 2011

IMHO -lib, at least for the ldmd2 compatibility script, should do exactly what it does under dmd and gdmd, i.e. build a static library. Building shared libraries should require using a separate switch. However, this is a relatively minor detail. Much more important is to just get an easy, single command way to build a static lib from a bunch of source files in place.

@bioinfornatics
Copy link
Contributor

we could do too -lib and -dynamic-lib :-)

@Trass3r
Copy link
Contributor

Trass3r commented Dec 6, 2011

or -lib and -shared

redstar pushed a commit that referenced this issue Sep 27, 2014
timotheecour pushed a commit to timotheecour/ldc that referenced this issue Dec 13, 2017
Fix up set/stack/utility examples after class value changes
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

No branches or pull requests

4 participants