Ignore:
Timestamp:
Sep 21, 2016, 1:14:43 PM (9 years ago)
Author:
bird
Message:

VCC100*.kmk: Use kDepObj, drop /FD and related idb-file, drop kObjCache support (useless thanks to slow preprocessing).

File:
1 edited

Legend:

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

    r2795 r2951  
    163163TOOL_VCC100_COMPILE_C_DEPEND =
    164164TOOL_VCC100_COMPILE_C_DEPORD =
    165 ifdef KBUILD_USE_KOBJCACHE
    166 TOOL_VCC100_COMPILE_C_USES_KOBJCACHE = 1
    167 TOOL_VCC100_COMPILE_C_OUTPUT = $(outbase).i
    168 TOOL_VCC100_COMPILE_C_OUTPUT_MAYBE =
    169 define TOOL_VCC100_COMPILE_C_CMDS
    170         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
    171                 --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
    172                 --kObjCache-cpp $(outbase).i\
    173                 $(TOOL_VCC100_CC) -E\
    174                 $(subst -Zi,-Z7,$(flags))\
    175                 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    176                 $(subst /,\\,$(abspath $(source))) \
    177                 --kObjCache-cc $(obj)\
    178                 $(TOOL_VCC100_CC) -c\
    179                 $(subst -Zi,-Z7,$(flags))\
    180                 -Fo$(obj)\
    181                 $(outbase).i
    182 endef
    183 else  # !KBUILD_USE_KOBJCACHE
    184 TOOL_VCC100_COMPILE_C_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
    185 TOOL_VCC100_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
     165TOOL_VCC100_COMPILE_C_OUTPUT =
     166TOOL_VCC100_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
    186167define TOOL_VCC100_COMPILE_C_CMDS
    187168        $(QUIET)$(TOOL_VCC100_CC) -c\
    188169                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    189170                -Fd$(outbase)-obj.pdb \
    190                 -FD\
    191171                -Fo$(obj)\
    192172                $(subst /,\\,$(abspath $(source)))
    193         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
    194 endef
    195 endif # !KBUILD_USE_KOBJCACHE
     173        $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj)
     174endef
    196175
    197176
     
    211190TOOL_VCC100_COMPILE_CXX_DEPEND =
    212191TOOL_VCC100_COMPILE_CXX_DEPORD =
    213 ifdef KBUILD_USE_KOBJCACHE
    214 TOOL_VCC100_COMPILE_CXX_USES_KOBJCACHE = 1
    215 TOOL_VCC100_COMPILE_CXX_OUTPUT = $(outbase).ii
    216 TOOL_VCC100_COMPILE_CXX_OUTPUT_MAYBE =
    217 define TOOL_VCC100_COMPILE_CXX_CMDS
    218         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
    219                 --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
    220                 --kObjCache-cpp $(outbase).ii\
    221                 $(TOOL_VCC100_CXX) -E\
    222                 $(subst -Zi,-Z7,$(flags))\
    223                 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    224                 $(subst /,\\,$(abspath $(source))) \
    225                 --kObjCache-cc $(obj)\
    226                 $(TOOL_VCC100_CXX) -c\
    227                 $(subst -Zi,-Z7,$(flags))\
    228                 -Fo$(obj)\
    229                 $(outbase).ii
    230 endef
    231 else  # !KBUILD_USE_KOBJCACHE
    232 TOOL_VCC100_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
    233 TOOL_VCC100_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
     192TOOL_VCC100_COMPILE_CXX_OUTPUT =
     193TOOL_VCC100_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
    234194define TOOL_VCC100_COMPILE_CXX_CMDS
    235195        $(QUIET)$(TOOL_VCC100_CXX) -c\
    236196                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    237197                -Fd$(outbase)-obj.pdb \
    238                 -FD\
    239198                -Fo$(obj)\
    240199                $(subst /,\\,$(abspath $(source)))
    241         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
    242 endef
    243 endif # !KBUILD_USE_KOBJCACHE
     200        $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj)
     201endef
    244202
    245203## @todo configure the assembler template.
Note: See TracChangeset for help on using the changeset viewer.