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/VCC100X86.kmk

    r2902 r2951  
    150150TOOL_VCC100X86_COMPILE_C_DEPEND =
    151151TOOL_VCC100X86_COMPILE_C_DEPORD =
    152 ifdef KBUILD_USE_KOBJCACHE
    153 TOOL_VCC100X86_COMPILE_C_USES_KOBJCACHE = 1
    154 TOOL_VCC100X86_COMPILE_C_OUTPUT = $(outbase).i
    155 TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE =
    156 define TOOL_VCC100X86_COMPILE_C_CMDS
    157         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
    158                 --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
    159                 --kObjCache-cpp $(outbase).i\
    160                 $(TOOL_VCC100X86_CC) -E\
    161                 $(subst -Zi,-Z7,$(flags))\
    162                 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    163                 $(subst /,\\,$(abspath $(source))) \
    164                 --kObjCache-cc $(obj)\
    165                 $(TOOL_VCC100X86_CC) -c\
    166                 $(subst -Zi,-Z7,$(flags))\
    167                 -Fo$(obj)\
    168                 $(outbase).i
    169 endef
    170 else  # !KBUILD_USE_KOBJCACHE
    171 TOOL_VCC100X86_COMPILE_C_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
    172 TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
    173  ifdef TOOL_VCC100X86_KSUBMIT
    174 define TOOL_VCC100X86_COMPILE_C_CMDS
     152TOOL_VCC100X86_COMPILE_C_OUTPUT =
     153TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
     154ifdef TOOL_VCC100X86_KSUBMIT
     155 TOOL_VCC100X86_COMPILE_C_DONT_PURGE_OUTPUT = 1 # speed
     156 define TOOL_VCC100X86_COMPILE_C_CMDS
    175157        $(QUIET)$(TOOL_VCC100X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\
    176158                -- $(TOOL_VCC100X86_CC) -c\
    177159                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    178160                -Fd$(outbase)-obj.pdb \
    179                 -FD\
    180161                -Fo$(obj)\
    181162                $(subst /,\\,$(abspath $(source)))
    182 endef
    183  else
    184 define TOOL_VCC100X86_COMPILE_C_CMDS
     163 endef
     164else
     165 define TOOL_VCC100X86_COMPILE_C_CMDS
    185166        $(QUIET)$(TOOL_VCC100X86_CC) -c\
    186167                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    187168                -Fd$(outbase)-obj.pdb \
    188                 -FD\
    189169                -Fo$(obj)\
    190170                $(subst /,\\,$(abspath $(source)))
    191         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
    192 endef
    193  endif # !TOOL_VCC100X86_KSUBMIT
    194 endif # !KBUILD_USE_KOBJCACHE
     171        $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj)
     172 endef
     173endif # !TOOL_VCC100X86_KSUBMIT
    195174
    196175
     
    210189TOOL_VCC100X86_COMPILE_CXX_DEPEND =
    211190TOOL_VCC100X86_COMPILE_CXX_DEPORD =
    212 ifdef KBUILD_USE_KOBJCACHE
    213 TOOL_VCC100X86_COMPILE_CXX_USES_KOBJCACHE = 1
    214 TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(outbase).ii
    215 TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE =
    216 define TOOL_VCC100X86_COMPILE_CXX_CMDS
    217         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
    218                 --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
    219                 --kObjCache-cpp $(outbase).ii\
    220                 $(TOOL_VCC100X86_CXX) -E\
    221                 $(subst -Zi,-Z7,$(flags))\
    222                 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    223                 $(subst /,\\,$(abspath $(source))) \
    224                 --kObjCache-cc $(obj)\
    225                 $(TOOL_VCC100X86_CXX) -c\
    226                 $(subst -Zi,-Z7,$(flags))\
    227                 -Fo$(obj)\
    228                 $(outbase).ii
    229 endef
    230 else  # !KBUILD_USE_KOBJCACHE
    231 TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
    232 TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
    233  ifdef TOOL_VCC100X86_KSUBMIT
    234 define TOOL_VCC100X86_COMPILE_CXX_CMDS
     191TOOL_VCC100X86_COMPILE_CXX_OUTPUT =
     192TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
     193ifdef TOOL_VCC100X86_KSUBMIT
     194 TOOL_VCC100X86_COMPILE_CXX_DONT_PURGE_OUTPUT = 1 # speed
     195 define TOOL_VCC100X86_COMPILE_CXX_CMDS
    235196        $(QUIET)$(TOOL_VCC100X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\
    236197                -- $(TOOL_VCC100X86_CXX) -c\
    237198                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    238199                -Fd$(outbase)-obj.pdb \
    239                 -FD\
    240200                -Fo$(obj)\
    241201                $(subst /,\\,$(abspath $(source)))
    242 endef
    243  else
    244 define TOOL_VCC100X86_COMPILE_CXX_CMDS
     202 endef
     203else
     204 define TOOL_VCC100X86_COMPILE_CXX_CMDS
    245205        $(QUIET)$(TOOL_VCC100X86_CXX) -c\
    246206                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    247207                -Fd$(outbase)-obj.pdb \
    248                 -FD\
    249208                -Fo$(obj)\
    250209                $(subst /,\\,$(abspath $(source)))
    251         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
    252 endef
    253  endif # !TOOL_VCC100X86_KSUBMIT
    254 endif # !KBUILD_USE_KOBJCACHE
     210        $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj)
     211 endef
     212endif # !TOOL_VCC100X86_KSUBMIT
    255213
    256214## @todo configure the assembler template.
Note: See TracChangeset for help on using the changeset viewer.