VirtualBox

Changeset 1006 in kBuild


Ignore:
Timestamp:
Jun 2, 2007 4:21:42 PM (18 years ago)
Author:
bird
Message:

USE_KOBJCACHE hacking.

File:
1 edited

Legend:

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

    r782 r1006  
    115115# @param    $(outbase)  Output basename (full). Use this for list files and such.
    116116# @param    $(objsuff)  Object suffix.
     117ifdef USE_KOBJCACHE
     118TOOL_VCC70_COMPILE_C_OUTPUT = $(call TOOL_VCC70_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC70_PDB, $(outbase)-obj,idb) $(outbase).i
     119TOOL_VCC70_COMPILE_C_DEPEND =
     120TOOL_VCC70_COMPILE_C_DEPORD =
     121TOOL_VCC70_COMPILE_C_USESES_KOBJCACHE = 1
     122define TOOL_VCC70_COMPILE_C_CMDS
     123        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).i \
     124                $(TOOL_VCC70_CC) -E \
     125                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     126                -Fd$(outbase)-obj.pdb \
     127                -FD\
     128                -Fo$(obj)\
     129                $(subst /,\\,$(abspath $(source))) \
     130                --kObjCache-cc $(obj) \
     131                $(TOOL_VCC70_CC) -c -TC\
     132                $(flags) \
     133                -Fd$(outbase)-obj.pdb \
     134                -FD\
     135                -Fo$(obj)\
     136                $(subst /,\\,$(outbase).i)
     137endef
     138#       $(QUIET)$(DEP_IDB) -f -s -o $(dep) -t $(obj) $(call TOOL_VCC70_PDB,$(outbase)-obj,idb)
     139else # !USE_KOBJCACHE
    117140TOOL_VCC70_COMPILE_C_OUTPUT = $(call TOOL_VCC70_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC70_PDB, $(outbase)-obj,idb)
    118141TOOL_VCC70_COMPILE_C_DEPEND =
    119142TOOL_VCC70_COMPILE_C_DEPORD =
    120 ifndef VCC70_OLD_DEPS
    121143define TOOL_VCC70_COMPILE_C_CMDS
    122144        $(QUIET)$(TOOL_VCC70_CC) -c\
     
    128150        $(QUIET)$(DEP_IDB) -f -s -o $(dep) -t $(obj) $(call TOOL_VCC70_PDB,$(outbase)-obj,idb)
    129151endef
    130 else
    131 define TOOL_VCC70_COMPILE_C_CMDS
    132         $(QUIET)$(TOOL_VCC70_CC) -c\
    133                 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    134                 -Fd$(outbase)-obj.pdb \
    135                 -Fo$(obj)\
    136                 $(subst /,\\,$(abspath $(source)))
    137         $(QUIET)$(TOOL_VCC70_CC) -E\
    138                 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    139                 $(subst /,\\,$(abspath $(source)))\
    140                 | $(DEP_PRE) -f -s -o $(dep) -t $(obj) -
    141 endef
    142 endif
     152endif # !USE_KOBJCACHE
    143153
    144154
     
    156166# @param    $(outbase)  Output basename (full). Use this for list files and such.
    157167# @param    $(objsuff)  Object suffix.
     168ifdef USE_KOBJCACHE
     169TOOL_VCC70_COMPILE_CXX_OUTPUT = $(call TOOL_VCC70_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC70_PDB, $(outbase)-obj,idb) $(outbase).ii
     170TOOL_VCC70_COMPILE_CXX_DEPEND =
     171TOOL_VCC70_COMPILE_CXX_DEPORD =
     172TOOL_VCC70_COMPILE_CXX_USESES_KOBJCACHE = 1
     173define TOOL_VCC70_COMPILE_CXX_CMDS
     174        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).ii \
     175                $(TOOL_VCC70_CC) -E \
     176                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     177                -Fd$(outbase)-obj.pdb \
     178                -FD\
     179                -Fo$(obj)\
     180                $(subst /,\\,$(abspath $(source))) \
     181                --kObjCache-cc $(obj) \
     182                $(TOOL_VCC70_CC) -c -TP\
     183                $(flags) \
     184                -Fd$(outbase)-obj.pdb \
     185                -FD\
     186                -Fo$(obj)\
     187                $(subst /,\\,$(outbase).ii)
     188endef
     189#       $(QUIET)$(DEP_IDB) -f -s -o $(dep) -t $(obj) $(call TOOL_VCC70_PDB,$(outbase)-obj,idb)
     190else # !USE_KOBJCACHE
    158191TOOL_VCC70_COMPILE_CXX_OUTPUT = $(call TOOL_VCC70_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC70_PDB, $(outbase)-obj,idb)
    159192TOOL_VCC70_COMPILE_CXX_DEPEND =
    160193TOOL_VCC70_COMPILE_CXX_DEPORD =
    161 ifndef VCC70_OLD_DEPS
    162194define TOOL_VCC70_COMPILE_CXX_CMDS
    163195        $(QUIET)$(TOOL_VCC70_CXX) -c\
     
    169201        $(QUIET)$(DEP_IDB) -f -s -o $(dep) -t $(obj) $(call TOOL_VCC70_PDB,$(outbase)-obj,idb)
    170202endef
    171 else
    172 define TOOL_VCC70_COMPILE_CXX_CMDS
    173         $(QUIET)$(TOOL_VCC70_CXX) -c\
    174                 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    175                 -Fd$(outbase)-obj.pdb \
    176                 -Fo$(obj)\
    177                 $(subst /,\\,$(abspath $(source)))
    178         $(QUIET)$(TOOL_VCC70_CXX) -E\
    179                 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    180                 $(subst /,\\,$(abspath $(source)))\
    181                 | $(DEP_PRE) -f -s -o $(dep) -t $(obj) -
    182 endef
    183 endif
     203endif # !USE_KOBJCACHE
    184204
    185205
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette