Ignore:
Timestamp:
Jul 27, 2012, 10:14:26 AM (13 years ago)
Author:
bird
Message:

VCC100*: Fixed kObjCache support.

File:
1 edited

Legend:

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

    r2609 r2611  
    9292
    9393TOOL_VCC100AMD64_COBJSUFF         ?= .obj
    94 TOOL_VCC100AMD64_CFLAGS           ?= -TC -c -nologo
     94TOOL_VCC100AMD64_CFLAGS           ?= -TC -nologo
    9595TOOL_VCC100AMD64_CFLAGS.debug     ?= -Od -Zi
    9696TOOL_VCC100AMD64_CFLAGS.release   ?= -O2
     
    100100
    101101TOOL_VCC100AMD64_CXXOBJSUFF       ?= .obj
    102 TOOL_VCC100AMD64_CXXFLAGS         ?= -TP -c -nologo
     102TOOL_VCC100AMD64_CXXFLAGS         ?= -TP -nologo
    103103TOOL_VCC100AMD64_CXXFLAGS.debug   ?= -Od -Zi
    104104TOOL_VCC100AMD64_CXXFLAGS.release ?= -O2
     
    136136TOOL_VCC100AMD64_COMPILE_C_DEPEND =
    137137TOOL_VCC100AMD64_COMPILE_C_DEPORD =
     138TOOL_VCC100AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
     139ifdef KBUILD_USE_KOBJCACHE
     140TOOL_VCC100AMD64_COMPILE_C_USES_KOBJCACHE = 1
     141TOOL_VCC100AMD64_COMPILE_C_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb) $(outbase).i
     142define TOOL_VCC100AMD64_COMPILE_C_CMDS
     143        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     144                --kObjCache-cpp $(outbase).i\
     145                $(TOOL_VCC100AMD64_CC) -E\
     146                $(flags)\
     147                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     148                $(subst /,\\,$(abspath $(source))) \
     149                --kObjCache-cc $(obj)\
     150                $(TOOL_VCC100AMD64_CC) -c\
     151                $(flags)\
     152                -Fd$(outbase)-obj.pdb \
     153                -FD\
     154                -Fo$(obj)\
     155                $(outbase).i
     156        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb)
     157endef
     158else  # !KBUILD_USE_KOBJCACHE
    138159TOOL_VCC100AMD64_COMPILE_C_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb)
    139 TOOL_VCC100AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    140160define TOOL_VCC100AMD64_COMPILE_C_CMDS
    141161        $(QUIET)$(TOOL_VCC100AMD64_CC) -c\
     
    147167        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb)
    148168endef
     169endif # !KBUILD_USE_KOBJCACHE
    149170
    150171
     
    164185TOOL_VCC100AMD64_COMPILE_CXX_DEPEND =
    165186TOOL_VCC100AMD64_COMPILE_CXX_DEPORD =
     187TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    166188ifdef KBUILD_USE_KOBJCACHE
    167189TOOL_VCC100AMD64_COMPILE_CXX_USES_KOBJCACHE = 1
    168190TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb) $(outbase).ii
    169 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    170 if 1
    171 define TOOL_VCC100AMD64_COMPILE_CXX_CMDS
    172         $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
    173                 --named-pipe-compile $(subst /,\\,//./pipe/kObjCache/$(translate $(outbase),:,_)/$(notdir $(source)))\
    174                 --kObjCache-cpp $(outbase).ii\
    175                 $(TOOL_VCC100AMD64_CXX) -E\
    176                 $(flags)\
    177                 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    178                 $(subst /,\\,$(abspath $(source))) \
    179                 --kObjCache-cc $(obj)\
    180                 windbg $(TOOL_VCC100AMD64_CXX) -c -TP\
    181                 $(flags)\
    182                 -Fd$(outbase)-obj.pdb \
    183                 -FD\
    184                 -Fo$(obj)\
    185                 $(subst /,\\,//./pipe/kObjCache/$(translate $(outbase),:,_)/$(notdir $(source)))
    186         $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb)
    187 endef
    188 else
    189191define TOOL_VCC100AMD64_COMPILE_CXX_CMDS
    190192        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     
    195197                $(subst /,\\,$(abspath $(source))) \
    196198                --kObjCache-cc $(obj)\
    197                 $(TOOL_VCC100AMD64_CXX) -c -TP\
     199                $(TOOL_VCC100AMD64_CXX) -c\
    198200                $(flags)\
    199201                -Fd$(outbase)-obj.pdb \
     
    203205        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb)
    204206endef
    205 endif
    206207else  # !KBUILD_USE_KOBJCACHE
    207208TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb)
    208 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb)
    209209define TOOL_VCC100AMD64_COMPILE_CXX_CMDS
    210210        $(QUIET)$(TOOL_VCC100AMD64_CXX) -c\
     
    217217endef
    218218endif # !KBUILD_USE_KOBJCACHE
     219
     220## @todo configure the assembler template.
    219221
    220222## Compile resource source.
Note: See TracChangeset for help on using the changeset viewer.