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/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.
Note: See TracChangeset for help on using the changeset viewer.