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

Different targetName based on buildType #951

Open
llucenic opened this issue Oct 4, 2016 · 3 comments
Open

Different targetName based on buildType #951

llucenic opened this issue Oct 4, 2016 · 3 comments

Comments

@llucenic
Copy link

llucenic commented Oct 4, 2016

What are the limitations that a dub project cannot have specified different targetName-s (and also other parameters) based on build type (e.g. debug or release)? I have read something about forward-compatibility, however I do not understand the design decision(s). Could you please shed some light on the topic? Or what are possible workarounds for a use case where I want to package both debug and release version of an executable?
Thank you very much.

@llucenic
Copy link
Author

llucenic commented Mar 1, 2018

Can anybody answer my question?

@s-ludwig
Copy link
Member

s-ludwig commented Mar 1, 2018

I think there is no fundamental problem that would preclude this, it's mainly been a simpler implementation/specification the way it is. However, the fact that configurations and build type definitions are orthogonal to each other makes this a bit difficult to define in a nice way. The easiest approach would be to just be able to define a prefix/suffix in the build type instead of the full target name/path. Otherwise there would have to be a syntax that allows to define a different name/path for each combination of configuration and built type.

Configurations are probably the best workaround right now, so the package would be built once as dub build -b release -c app_release and once as dub build -b debug -c app_debug.

@jondegenhardt
Copy link

I'd find this useful also. I'm trying to setup PGO builds using LDC. First step is to create an instrumented build. Generating it with an alternate name seems logical.

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

3 participants