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