[LLVMdev] [Cygwin] llvm 'make install' build errors
Misha Brukman
brukman at uiuc.edu
Thu May 19 16:04:41 PDT 2005
On Thu, May 19, 2005 at 02:50:54PM -0700, Reid Spencer wrote:
> Yeah, cygwin's a bit of a pig. To do a release build, just do:
> make ENABLE_RELEASE=1
Actually, it's "make ENABLE_OPTIMIZED=1". Perhaps it should also allow
ENABLE_RELEASE=1 as a synonym.
Note that if you run ./configure the usual way, you *always* have to run
"make ENABLE_OPTIMIZED=1" to build, and if you ever run just "make" it
will happily do a debug build for you. Note that the objdir can hold 3
separate build trees for the same source code: Debug, Release, and
Profile, with those subdirectory names.
To make life easier for yourself, run "configure --enable-optimized" and
it will then default to ALWAYS building release mode, assuming you don't
want debug mode at all.
This is documented here:
http://llvm.cs.uiuc.edu/docs/GettingStarted.html#config
Personally, I think --enable-optimized is a strange name, because why
would anyone want to "disable" optimization? :) Maybe it should be
something like --build-optimized, --build-profile, and --build-debug, or
even --build={opt,prof,debug} since it's a 3-way switch, and you can't
pick and choose more than one of them at a time.
--
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
More information about the llvm-dev
mailing list