filesystems: we aren't BeOS, so we can safely use -O2(+).

This commit is contained in:
Augustin Cavalier 2015-05-08 13:28:01 -04:00
parent 4bb1fc1791
commit ae495ca8fe
7 changed files with 0 additions and 59 deletions

View File

@ -7,11 +7,6 @@ SubDir HAIKU_TOP src add-ons kernel file_systems bfs ;
#BFS_BIG_ENDIAN_ONLY
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) ;
SubDirC++Flags $(defines) ;

View File

@ -1,8 +1,5 @@
SubDir HAIKU_TOP src add-ons kernel file_systems udf drive_setup_addon ;
# save original optimization level
oldOPTIM = $(OPTIM) ;
# set some additional defines
{
local defines =
@ -15,9 +12,6 @@ oldOPTIM = $(OPTIM) ;
if $(DEBUG) {
#defines += DEBUG ;
} else {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
@ -55,7 +49,3 @@ actions ignore InstallUDFDS
}
InstallUDFDS install : i-udf-ds ;
# restore original optimization level
OPTIM = $(oldOPTIM) ;

View File

@ -2,9 +2,6 @@ SubDir HAIKU_TOP src tests add-ons kernel file_systems bfs r5 ;
SetSubDirSupportedPlatformsBeOSCompatible ;
# save original optimization level
oldOPTIM = $(OPTIM) ;
# set some additional defines
{
local defines =
@ -27,11 +24,6 @@ oldOPTIM = $(OPTIM) ;
bfsAddOnName = obfs ;
}
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) ;
SubDirC++Flags $(defines) -fno-rtti ;
@ -75,6 +67,3 @@ actions ignore InstallBFS
}
InstallBFS install : obfs ;
# restore original optimization level
OPTIM = $(oldOPTIM) ;

View File

@ -3,9 +3,6 @@ SubDir HAIKU_TOP src tests add-ons kernel file_systems udf r5 ;
SetSubDirSupportedPlatformsBeOSCompatible ;
SubDirC++Flags -fno-rtti ;
# save original optimization level
oldOPTIM = $(OPTIM) ;
# set some additional defines
{
local defines =
@ -14,11 +11,6 @@ oldOPTIM = $(OPTIM) ;
defines += COMPILE_FOR_R5 ;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) ;
SubDirC++Flags $(defines) ;
@ -62,8 +54,3 @@ actions ignore InstallUDF
}
InstallUDF install : udf ;
# restore original optimization level
OPTIM = $(oldOPTIM) ;
SubInclude HAIKU_TOP src tests add-ons kernel file_systems udf r5 drive_setup_addon ;

View File

@ -2,9 +2,6 @@ SubDir HAIKU_TOP src tests add-ons kernel file_systems udf r5 drive_setup_addon
SetSubDirSupportedPlatformsBeOSCompatible ;
# save original optimization level
oldOPTIM = $(OPTIM) ;
# set some additional defines
{
local defines =
@ -17,9 +14,6 @@ oldOPTIM = $(OPTIM) ;
if $(DEBUG) {
#defines += DEBUG ;
} else {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
@ -57,7 +51,3 @@ actions ignore InstallUDFDS
}
InstallUDFDS install : i-udf-ds ;
# restore original optimization level
OPTIM = $(oldOPTIM) ;

View File

@ -11,11 +11,6 @@ SEARCH_SOURCE += $(bfsTop) ;
USER=1
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) ;
SubDirC++Flags $(defines) -fno-rtti ;

View File

@ -12,11 +12,6 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
FS_SHELL
;
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
OPTIM = -O1 ;
}
defines = [ FDefines $(defines) ] ;
SubDirCcFlags $(defines) -Wno-multichar ;
SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ;