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

Add commandline option -lowmem #1867

Closed
shoo opened this issue Jan 25, 2020 · 6 comments
Closed

Add commandline option -lowmem #1867

shoo opened this issue Jan 25, 2020 · 6 comments

Comments

@shoo
Copy link
Contributor

shoo commented Jan 25, 2020

The -lowmem option is effective when building in an environment with low memory capacity.
When specifying this using dub, it is necessary to describe it in dflags of dub.sdl/.json which is a configuration file now.
However, since this option is not dependent on the project itself, but an option that needs to be switched depending on the building environment, it should not be described in a configuration file that applies regardless of the environment.
To solve this, I propose to allow the -lowmem option to be specified in the command line argument of dub itself.

Thanks!

@rikkimax
Copy link
Contributor

Alternatively use DFLAGS="-lowmem" dub build.

@shoo
Copy link
Contributor Author

shoo commented Jan 25, 2020

Thanks for suggesting alternatives.
In addition, editing sc.ini / dmd.conf / ldc2.conf has the same effect.

@Geod24
Copy link
Member

Geod24 commented Jan 25, 2020

It sounds like something that should be in the settings file.

@shoo
Copy link
Contributor Author

shoo commented Jan 25, 2020

Sounds good. It's a good idea to be able to describe it in the settings file.

@Geod24
Copy link
Member

Geod24 commented Jul 14, 2021

Looks like you fixed this, right ?

@shoo
Copy link
Contributor Author

shoo commented Jul 19, 2021

Yes, this has been released with dmd 2.097.0.

@shoo shoo closed this as completed Jul 19, 2021
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