RejectedSoftware Forums

Sign up

Can't build a release version?

I'm currently trying to track down a reported bug in DSFML, and I feel like this is going to make me sound silly, but I have added this line to my dub.json file: "buildOptions": ["releaseMode"], and whenever I build (I'm uisng dub --force to confirm everything) it says that I am still building debug versions. What am I doing wrong?

Here is my full dub.json if you are curious.

{
	"name": "dub_console_test",
	"description": "A minimal D application.",
	"copyright": "Copyright © 2014, Jebbs",
	"authors": ["Jebbs"],
	"buildOptions": ["releaseMode"],
	"lflags" : ["+C:\\Users\\Jebbs\\Desktop\\dub_bins\\"],
	"dependencies": {
		"dsfml:graphics": "~2.0",
	}
}

I'm using version 0.9.21

Re: Can't build a release version?

Am 13.07.2014 00:36, schrieb Jebbs:

I'm currently trying to track down a reported bug in DSFML, and I feel like this is going to make me sound silly, but I have added this line to my dub.json file: "buildOptions": ["releaseMode"], and whenever I build (I'm uisng dub --force to confirm everything) it says that I am still building debug versions. What am I doing wrong?

Here is my full dub.json if you are curious.

{
	"name": "dub_console_test",
	"description": "A minimal D application.",
	"copyright": "Copyright © 2014, Jebbs",
	"authors": ["Jebbs"],
	"buildOptions": ["releaseMode"],
	"lflags" : ["+C:\\Users\\Jebbs\\Desktop\\dub_bins\\"],
	"dependencies": {
		"dsfml:graphics": "~2.0",
	}
}

I'm using version 0.9.21

Building in release version is done using the --build=release or short
-b release command line switch. With "buildOptions" you are just
changing the general build options used for every build type and DUB
should output a warning with an alternative suggestion.

There is currently no way to specify the build type within dub.json, but
a "defaultBuildType": "release" field sounds like it could be
supported without issues.