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

DMD/GDC: make single compiler call for all source files (faster) #1923

Open
bdbaddog opened this issue Jan 2, 2018 · 0 comments
Open

DMD/GDC: make single compiler call for all source files (faster) #1923

bdbaddog opened this issue Jan 2, 2018 · 0 comments

Comments

@bdbaddog
Copy link
Contributor

bdbaddog commented Jan 2, 2018

This issue was originally created at: 2008-02-23 15:53:32.
This issue was reported by: jascha.
jascha said at 2008-02-23 15:53:32

D compilers can compile multiple modules in one call. Common imports have to be processed only once, speeding up the build significantly.

For this to work with separate build-dirs, the options -od<objdir> and -op have to be considered.

Here is an example call:

dmd -oqobj -op -c src/mod1.d src/pak1/mod2.d src/pak2/mod3.d

will generate:

obj/mod1.o
obj/pak1.mod2.o
obj/pak2.mod3.o

gregnoel said at 2008-04-14 19:08:27

Bug party triage: Needs batch processing from issue 1086.

gregnoel said at 2008-12-26 13:20:29

Adjust triage of issues.

stevenknight said at 2009-01-09 09:37:06

Batch build support has now been added, so this should be relatively straightforward to do for DMD, too. Patch welcome. See Tool/msvc.py for the best real-world example of how it can be used.

stevenknight said at 2009-11-10 18:00:19

stevenknight => issues@scons

gregnoel said this issue depends on #1086 at 2008-04-14 19:08:27.

@bdbaddog bdbaddog added this to the 3.x milestone Jan 2, 2018
@bdbaddog bdbaddog added the P3 label Jan 2, 2018
@mwichmann mwichmann modified the milestones: 3.x, anytime Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants