DFLAGS build problems with -release

17 views
Skip to first unread message

joseph....@gmail.com

unread,
Dec 23, 2012, 1:31:43 PM12/23/12
to ldc...@googlegroups.com
Hello all,

Just tried to build from GitHub source for the first time in a little while.

I called cmake using the option -DD_FLAGS="-d;-O3;-release" only to be confronted with the following error during the build:

[ 21%] ldc2: for the -release option: may only occur zero or one times!

... while removing -release from the DFLAGS corrected this.

Would I be right in assuming that the LDC default build process has been tweaked in response to the discussion here:
https://groups.google.com/forum/#!topic/ldc-dev/g3nt-HxVhB8

... and that the default DFLAGS are now -d -O3 -release unless specified otherwise?

Could there be a note on default DFLAGS and how to generate a debug build added to http://wiki.dlang.org/Building_LDC_from_source please?

Thanks & best wishes,

-- Joe

David Nadlinger

unread,
Dec 23, 2012, 2:22:11 PM12/23/12
to ldc...@googlegroups.com
On Sun, Dec 23, 2012 at 7:31 PM, <joseph....@gmail.com> wrote:
> Could there be a note on default DFLAGS and how to generate a debug build added to http://wiki.dlang.org/Building_LDC_from_source please?

By default, both a debug and a release version of druntime/Phobos are
built now, using the extra flags from the
D_FLAGS_DEBUG/D_FLAGS_RELEASE CMake variables. They are set up as
-defaultlib/-debuglib, so the debug library gets picked up
automatically if -g is specified. End users should not have to worry
about this.

Also, from now on please use
http://forum.dlang.org/group/digitalmars.D.ldc for general discussion.
The mailing list interface is still not set up, though, and my plan
was to wait for this before announcing it here.

David
Reply all
Reply to author
Forward
0 new messages