Ignore:
Timestamp:
Sep 8, 2016, 3:28:37 PM (9 years ago)
Author:
bird
Message:

Use kObjDep more.

File:
1 edited

Legend:

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

    r2870 r2895  
    7676ifdef TOOL_VCC100X86_USE_KSUBMIT
    7777 ifeq ($(KBUILD_HOST),win)
    78   TOOL_VCC100X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit --
     78  TOOL_VCC100X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit
    7979 endif
    8080endif
     
    169169TOOL_VCC100X86_COMPILE_C_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
    170170TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
     171 ifdef TOOL_VCC100X86_KSUBMIT
    171172define TOOL_VCC100X86_COMPILE_C_CMDS
    172         $(QUIET)$(TOOL_VCC100X86_KSUBMIT) $(TOOL_VCC100X86_CC) -c\
     173        $(QUIET)$(TOOL_VCC100X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\
     174                -- $(TOOL_VCC100X86_CC) -c\
    173175                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    174176                -Fd$(outbase)-obj.pdb \
     
    176178                -Fo$(obj)\
    177179                $(subst /,\\,$(abspath $(source)))
     180endef
     181 else
     182define TOOL_VCC100X86_COMPILE_C_CMDS
     183        $(QUIET)$(TOOL_VCC100X86_CC) -c\
     184                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     185                -Fd$(outbase)-obj.pdb \
     186                -FD\
     187                -Fo$(obj)\
     188                $(subst /,\\,$(abspath $(source)))
    178189        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
    179190endef
     191 endif # !TOOL_VCC100X86_KSUBMIT
    180192endif # !KBUILD_USE_KOBJCACHE
    181193
     
    217229TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
    218230TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
     231 ifdef TOOL_VCC100X86_KSUBMIT
    219232define TOOL_VCC100X86_COMPILE_CXX_CMDS
    220         $(QUIET)$(TOOL_VCC100X86_KSUBMIT) $(TOOL_VCC100X86_CXX) -c\
     233        $(QUIET)$(TOOL_VCC100X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\
     234                -- $(TOOL_VCC100X86_CXX) -c\
    221235                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    222236                -Fd$(outbase)-obj.pdb \
     
    224238                -Fo$(obj)\
    225239                $(subst /,\\,$(abspath $(source)))
     240endef
     241 else
     242define TOOL_VCC100X86_COMPILE_CXX_CMDS
     243        $(QUIET)$(TOOL_VCC100X86_CXX) -c\
     244                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     245                -Fd$(outbase)-obj.pdb \
     246                -FD\
     247                -Fo$(obj)\
     248                $(subst /,\\,$(abspath $(source)))
    226249        $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
    227250endef
     251 endif # !TOOL_VCC100X86_KSUBMIT
    228252endif # !KBUILD_USE_KOBJCACHE
    229253
Note: See TracChangeset for help on using the changeset viewer.