jam: do not set OPTIM by default

If setting OPTIM by jam basically makes it impossible for the project that
is using jam to set its own optimization level while still allowing user
to override that in command line. For example in Haiku jam files there is
line like this: "OPTIM ?= -O2", which obviously is meant to set optimization
level to O2 unless user overwrites it. Unfortunately, because Jam have already
set OPTIM to -O this line never had an intended effect.

After this Jam no longer thinks it knows best what is good for projects
that are using it and Haiku is by default compiled with -O2.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
This commit is contained in:
Paweł Dziepak 2014-08-25 22:58:39 +02:00
parent 6f9a8fa02b
commit 862b5480a9

View File

@ -540,7 +540,7 @@ else if $(UNIX)
LEX ?= lex ;
LINKFLAGS ?= $(CCFLAGS) ;
LINKLIBS ?= ;
OPTIM ?= -O ;
OPTIM ?= ;
RANLIB ?= ranlib ;
YACC ?= yacc ;
YACCGEN ?= .c ;