forked from github/server
floating point rules to ensure same output with release and debug
This commit is contained in:
parent
3e9c0c894a
commit
ad240fecc0
1 changed files with 7 additions and 3 deletions
10
src/Jamrules
10
src/Jamrules
|
@ -14,6 +14,7 @@ if ! $(HAVE_LUA) {
|
||||||
|
|
||||||
if ! $(CPU) {
|
if ! $(CPU) {
|
||||||
CPU = pentium2 ;
|
CPU = pentium2 ;
|
||||||
|
ARCH = -march=$(CPU) -mtune=$(CPU) -mmmx -mieee-fp ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(DISTCC_HOSTS) {
|
if $(DISTCC_HOSTS) {
|
||||||
|
@ -142,12 +143,15 @@ rule TargetDirectory
|
||||||
if $(DEBUG) = 1 {
|
if $(DEBUG) = 1 {
|
||||||
SubDirCcFlags -ggdb ;
|
SubDirCcFlags -ggdb ;
|
||||||
SubDirC++Flags -ggdb ;
|
SubDirC++Flags -ggdb ;
|
||||||
OPTIM = -O0 ;
|
OPTIM = -O0 -ffloat-store ;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SubDirCcFlags -DNDEBUG -march=$(CPU) -mtune=$(CPU) ;
|
SubDirCcFlags -DNDEBUG ;
|
||||||
SubDirC++Flags -DNDEBUG -march=$(CPU) -mtune=$(CPU) ;
|
SubDirC++Flags -DNDEBUG ;
|
||||||
|
OPTIM = -Os -ffloat-store ;
|
||||||
}
|
}
|
||||||
|
SubDirCcFlags $(ARCH) ;
|
||||||
|
SubDirC++Flags $(ARCH) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! $(DEBUG) {
|
if ! $(DEBUG) {
|
||||||
|
|
Loading…
Reference in a new issue