Changeset 2611


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

VCC100*: Fixed kObjCache support.

Location:
trunk/kBuild/tools
Files:
3 edited

Legend:

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

    r2606 r2611  
    105105
    106106TOOL_VCC100_COBJSUFF         ?= .obj
    107 TOOL_VCC100_CFLAGS           ?= -TC -c -nologo
     107TOOL_VCC100_CFLAGS           ?= -TC -nologo
    108108TOOL_VCC100_CFLAGS.debug     ?= -Od -Zi
    109109TOOL_VCC100_CFLAGS.release   ?= -O2
     
    113113
    114114TOOL_VCC100_CXXOBJSUFF       ?= .obj
    115 TOOL_VCC100_CXXFLAGS         ?= -TP -c -nologo
     115TOOL_VCC100_CXXFLAGS         ?= -TP -nologo
    116116TOOL_VCC100_CXXFLAGS.debug   ?= -Od -Zi
    117117TOOL_VCC100_CXXFLAGS.release ?= -O2
     
    155155TOOL_VCC100_COMPILE_C_DEPEND =
    156156TOOL_VCC100_COMPILE_C_DEPORD =
     157TOOL_VCC100_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
     158ifdef KBUILD_USE_KOBJCACHE
     159TOOL_VCC100_COMPILE_C_USES_KOBJCACHE = 1
     160TOOL_VCC100_COMPILE_C_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb) $(outbase).i
     161define TOOL_VCC100_COMPILE_C_CMDS
     162        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     163                --kObjCache-cpp $(outbase).i\
     164                $(TOOL_VCC100_CC) -E\
     165                $(flags)\
     166                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     167                $(subst /,\\,$(abspath $(source))) \
     168                --kObjCache-cc $(obj)\
     169                $(TOOL_VCC100_C) -c\
     170                $(flags)\
     171                -Fd$(outbase)-obj.pdb \
     172                -FD\
     173                -Fo$(obj)\
     174                $(outbase).i
     175        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
     176endef
     177else  # !KBUILD_USE_KOBJCACHE
    157178TOOL_VCC100_COMPILE_C_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
    158 TOOL_VCC100_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
    159179define TOOL_VCC100_COMPILE_C_CMDS
    160180        $(QUIET)$(TOOL_VCC100_CC) -c\
     
    166186        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
    167187endef
     188endif # !KBUILD_USE_KOBJCACHE
    168189
    169190
     
    183204TOOL_VCC100_COMPILE_CXX_DEPEND =
    184205TOOL_VCC100_COMPILE_CXX_DEPORD =
     206TOOL_VCC100_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
     207ifdef KBUILD_USE_KOBJCACHE
     208TOOL_VCC100_COMPILE_CXX_USES_KOBJCACHE = 1
     209TOOL_VCC100_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb) $(outbase).ii
     210define TOOL_VCC100_COMPILE_CXX_CMDS
     211        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     212                --kObjCache-cpp $(outbase).ii\
     213                $(TOOL_VCC100_CXX) -E\
     214                $(flags)\
     215                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     216                $(subst /,\\,$(abspath $(source))) \
     217                --kObjCache-cc $(obj)\
     218                $(TOOL_VCC100_CXX) -c\
     219                $(flags)\
     220                -Fd$(outbase)-obj.pdb \
     221                -FD\
     222                -Fo$(obj)\
     223                $(outbase).ii
     224        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
     225endef
     226else  # !KBUILD_USE_KOBJCACHE
    185227TOOL_VCC100_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
    186 TOOL_VCC100_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
    187228define TOOL_VCC100_COMPILE_CXX_CMDS
    188229        $(QUIET)$(TOOL_VCC100_CXX) -c\
     
    194235        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
    195236endef
    196 
     237endif # !KBUILD_USE_KOBJCACHE
     238
     239## @todo configure the assembler template.
    197240
    198241## Compile resource source.
  • 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.
  • trunk/kBuild/tools/VCC100X86.kmk

    r2606 r2611  
    9393# General Properties used by kBuild
    9494TOOL_VCC100X86_COBJSUFF         ?= .obj
    95 TOOL_VCC100X86_CFLAGS           ?= -TC -c -nologo
     95TOOL_VCC100X86_CFLAGS           ?= -TC -nologo
    9696TOOL_VCC100X86_CFLAGS.debug     ?= -Zi
    9797TOOL_VCC100X86_CFLAGS.release   ?= -O2
     
    101101
    102102TOOL_VCC100X86_CXXOBJSUFF       ?= .obj
    103 TOOL_VCC100X86_CXXFLAGS         ?= -TP -c -nologo
     103TOOL_VCC100X86_CXXFLAGS         ?= -TP -nologo
    104104TOOL_VCC100X86_CXXFLAGS.debug   ?= -Zi
    105105TOOL_VCC100X86_CXXFLAGS.release ?= -O2
     
    137137TOOL_VCC100X86_COMPILE_C_DEPEND =
    138138TOOL_VCC100X86_COMPILE_C_DEPORD =
     139TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
     140ifdef KBUILD_USE_KOBJCACHE
     141TOOL_VCC100X86_COMPILE_C_USES_KOBJCACHE = 1
     142TOOL_VCC100X86_COMPILE_C_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb) $(outbase).i
     143define TOOL_VCC100X86_COMPILE_C_CMDS
     144        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     145                --kObjCache-cpp $(outbase).i\
     146                $(TOOL_VCC100X86_CC) -E\
     147                $(flags)\
     148                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     149                $(subst /,\\,$(abspath $(source))) \
     150                --kObjCache-cc $(obj)\
     151                $(TOOL_VCC100X86_CC) -c\
     152                $(flags)\
     153                -Fd$(outbase)-obj.pdb \
     154                -FD\
     155                -Fo$(obj)\
     156                $(outbase).i
     157        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
     158endef
     159else  # !KBUILD_USE_KOBJCACHE
    139160TOOL_VCC100X86_COMPILE_C_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
    140 TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
    141161define TOOL_VCC100X86_COMPILE_C_CMDS
    142162        $(QUIET)$(TOOL_VCC100X86_CC) -c\
     
    148168        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
    149169endef
     170endif # !KBUILD_USE_KOBJCACHE
    150171
    151172
     
    165186TOOL_VCC100X86_COMPILE_CXX_DEPEND =
    166187TOOL_VCC100X86_COMPILE_CXX_DEPORD =
     188TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
     189ifdef KBUILD_USE_KOBJCACHE
     190TOOL_VCC100X86_COMPILE_CXX_USES_KOBJCACHE = 1
     191TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb) $(outbase).ii
     192define TOOL_VCC100X86_COMPILE_CXX_CMDS
     193        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
     194                --kObjCache-cpp $(outbase).ii\
     195                $(TOOL_VCC100X86_CXX) -E\
     196                $(flags)\
     197                $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     198                $(subst /,\\,$(abspath $(source))) \
     199                --kObjCache-cc $(obj)\
     200                $(TOOL_VCC100X86_CXX) -c\
     201                $(flags)\
     202                -Fd$(outbase)-obj.pdb \
     203                -FD\
     204                -Fo$(obj)\
     205                $(outbase).ii
     206        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
     207endef
     208else  # !KBUILD_USE_KOBJCACHE
    167209TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
    168 TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
    169210define TOOL_VCC100X86_COMPILE_CXX_CMDS
    170211        $(QUIET)$(TOOL_VCC100X86_CXX) -c\
     
    176217        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
    177218endef
     219endif # !KBUILD_USE_KOBJCACHE
    178220
    179221## @todo configure the assembler template.
Note: See TracChangeset for help on using the changeset viewer.