Ignore:
Timestamp:
Aug 2, 2012, 6:14:25 AM (13 years ago)
Author:
bird
Message:

VCC100*.kmk: kObjCache changes. No PDB files when the cache is used, and optimize the preprocessor output to increase the hit rate (and reduce dispace requirements quite significantly).

File:
1 edited

Legend:

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

    r2611 r2621  
    136136TOOL_VCC100AMD64_COMPILE_C_DEPEND =
    137137TOOL_VCC100AMD64_COMPILE_C_DEPORD =
    138 TOOL_VCC100AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    139138ifdef KBUILD_USE_KOBJCACHE
    140139TOOL_VCC100AMD64_COMPILE_C_USES_KOBJCACHE = 1
    141 TOOL_VCC100AMD64_COMPILE_C_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb) $(outbase).i
     140TOOL_VCC100AMD64_COMPILE_C_OUTPUT = $(outbase).i
     141TOOL_VCC100AMD64_COMPILE_C_OUTPUT_MAYBE =
    142142define TOOL_VCC100AMD64_COMPILE_C_CMDS
    143         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     143        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
     144                --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
    144145                --kObjCache-cpp $(outbase).i\
    145146                $(TOOL_VCC100AMD64_CC) -E\
    146                 $(flags)\
     147                $(subst -Zi,-Z7,$(flags))\
    147148                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    148149                $(subst /,\\,$(abspath $(source))) \
    149150                --kObjCache-cc $(obj)\
    150151                $(TOOL_VCC100AMD64_CC) -c\
    151                 $(flags)\
    152                 -Fd$(outbase)-obj.pdb \
    153                 -FD\
     152                $(subst -Zi,-Z7,$(flags))\
    154153                -Fo$(obj)\
    155154                $(outbase).i
    156         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb)
    157155endef
    158156else  # !KBUILD_USE_KOBJCACHE
    159157TOOL_VCC100AMD64_COMPILE_C_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb)
     158TOOL_VCC100AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    160159define TOOL_VCC100AMD64_COMPILE_C_CMDS
    161160        $(QUIET)$(TOOL_VCC100AMD64_CC) -c\
     
    185184TOOL_VCC100AMD64_COMPILE_CXX_DEPEND =
    186185TOOL_VCC100AMD64_COMPILE_CXX_DEPORD =
    187 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    188186ifdef KBUILD_USE_KOBJCACHE
    189187TOOL_VCC100AMD64_COMPILE_CXX_USES_KOBJCACHE = 1
    190 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb) $(outbase).ii
     188TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(outbase).ii
     189TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE =
    191190define TOOL_VCC100AMD64_COMPILE_CXX_CMDS
    192         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     191        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
     192                --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
    193193                --kObjCache-cpp $(outbase).ii\
    194194                $(TOOL_VCC100AMD64_CXX) -E\
    195                 $(flags)\
     195                $(subst -Zi,-Z7,$(flags))\
    196196                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    197197                $(subst /,\\,$(abspath $(source))) \
    198198                --kObjCache-cc $(obj)\
    199199                $(TOOL_VCC100AMD64_CXX) -c\
    200                 $(flags)\
    201                 -Fd$(outbase)-obj.pdb \
    202                 -FD\
     200                $(subst -Zi,-Z7,$(flags))\
    203201                -Fo$(obj)\
    204202                $(outbase).ii
    205         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb)
    206203endef
    207204else  # !KBUILD_USE_KOBJCACHE
    208205TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb)
     206TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    209207define TOOL_VCC100AMD64_COMPILE_CXX_CMDS
    210208        $(QUIET)$(TOOL_VCC100AMD64_CXX) -c\
Note: See TracChangeset for help on using the changeset viewer.