Ignore:
Timestamp:
Jun 11, 2007, 1:22:43 PM (18 years ago)
Author:
bird
Message:

Updated to new cache code. Also dropped -g from the profile cflags and cxxflags to improve cache hits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/GXX3PLAIN.kmk

    r1034 r1058  
    5858TOOL_GXX3PLAIN_CFLAGS           ?=
    5959TOOL_GXX3PLAIN_CFLAGS.debug     ?= -g
    60 TOOL_GXX3PLAIN_CFLAGS.profile   ?= -g -O2 #-pg
     60TOOL_GXX3PLAIN_CFLAGS.profile   ?= -O2 #-g -pg
    6161TOOL_GXX3PLAIN_CFLAGS.release   ?= -O2
    6262TOOL_GXX3PLAIN_CINCS            ?=
     
    6767TOOL_GXX3PLAIN_CXXFLAGS         ?=
    6868TOOL_GXX3PLAIN_CXXFLAGS.debug   ?= -g
    69 TOOL_GXX3PLAIN_CXXFLAGS.profile ?= -g -O2 #-pg
     69TOOL_GXX3PLAIN_CXXFLAGS.profile ?= -O2 #-g -pg
    7070TOOL_GXX3PLAIN_CXXFLAGS.release ?= -O2
    7171TOOL_GXX3PLAIN_CXXINCS          ?=
     
    103103TOOL_GXX3PLAIN_COMPILE_C_OUTPUT = $(outbase).i
    104104define TOOL_GXX3PLAIN_COMPILE_C_CMDS
    105         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).i \
     105        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
     106                --kObjCache-cpp $(outbase).i\
    106107                $(TOOL_GXX3PLAIN_CC) -E -o -\
    107108                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    108109                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
    109                 $(abspath $(source)) \
    110                 --kObjCache-cc $(obj) \
     110                $(abspath $(source))\
     111                --kObjCache-cc $(obj)\
    111112                $(TOOL_GXX3PLAIN_CC) -c\
    112                 $(flags)\
    113                 -o $(obj)\
    114                 $(outbase).i
     113                $(flags) -fpreprocessed -x c\
     114                -o $(obj)\
     115                -
    115116endef
    116117else # !USE_KOBJCACHE
     
    145146TOOL_GXX3PLAIN_COMPILE_CXX_OUTPUT = $(outbase).ii
    146147define TOOL_GXX3PLAIN_COMPILE_CXX_CMDS
    147         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).ii \
     148        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
     149                --kObjCache-cpp $(outbase).ii\
    148150                $(TOOL_GXX3PLAIN_CXX) -E -o -\
    149151                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    150152                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
    151                 $(abspath $(source)) \
    152                 --kObjCache-cc $(obj) \
     153                $(abspath $(source))\
     154                --kObjCache-cc $(obj)\
    153155                $(TOOL_GXX3PLAIN_CXX) -c\
    154                 $(flags)\
    155                 -o $(obj)\
    156                 $(outbase).ii
     156                $(flags) -fpreprocessed -x c++\
     157                -o $(obj)\
     158                -
    157159endef
    158160else # !USE_KOBJCACHE
Note: See TracChangeset for help on using the changeset viewer.