VirtualBox

Changeset 1013 in kBuild


Ignore:
Timestamp:
Jun 2, 2007 6:11:20 PM (18 years ago)
Author:
bird
Message:

kObjCache testing.

Location:
trunk/kBuild/tools
Files:
2 edited

Legend:

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

    r973 r1013  
    9191# @param    $(outbase)  Output basename (full). Use this for list files and such.
    9292# @param    $(objsuff)  Object suffix.
    93 TOOL_GCC4MACHO_COMPILE_C_OUTPUT =
    9493TOOL_GCC4MACHO_COMPILE_C_DEPEND =
    9594TOOL_GCC4MACHO_COMPILE_C_DEPORD =
     95ifdef USE_KOBJCACHE
     96TOOL_GCC4MACHO_COMPILE_C_USES_KOBJCACHE = 1
     97TOOL_GCC4MACHO_COMPILE_C_OUTPUT = $(outbase).i
     98define TOOL_GCC4MACHO_COMPILE_C_CMDS
     99        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).i \
     100                $(TOOL_GCC4MACHO_CC) -E -o -\
     101                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     102                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
     103                $(abspath $(source)) \
     104                --kObjCache-cc $(obj) \
     105                $(TOOL_GCC4MACHO_CC) -c\
     106                $(flags)\
     107                -o $(obj)\
     108                $(outbase).i
     109endef
     110else  # !USE_KOBJCACHE
     111TOOL_GCC4MACHO_COMPILE_C_OUTPUT =
    96112define TOOL_GCC4MACHO_COMPILE_C_CMDS
    97113        $(QUIET)$(TOOL_GCC4MACHO_CC) -c\
     
    101117                $(abspath $(source))
    102118endef
     119endif # !KUSE_OBJCACHE
    103120
    104121
     
    115132# @param    $(outbase)  Output basename (full). Use this for list files and such.
    116133# @param    $(objsuff)  Object suffix.
    117 TOOL_GCC4MACHO_COMPILE_CXX_OUTPUT =
    118134TOOL_GCC4MACHO_COMPILE_CXX_DEPEND =
    119135TOOL_GCC4MACHO_COMPILE_CXX_DEPORD =
     136ifdef USE_KOBJCACHE
     137TOOL_GCC4MACHO_COMPILE_CXX_USES_KOBJCACHE = 1
     138TOOL_GCC4MACHO_COMPILE_CXX_OUTPUT = $(outbase).ii
     139define TOOL_GCC4MACHO_COMPILE_CXX_CMDS
     140        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).ii \
     141                $(TOOL_GCC4MACHO_CXX) -E -o -\
     142                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     143                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
     144                $(abspath $(source)) \
     145                --kObjCache-cc $(obj) \
     146                $(TOOL_GCC4MACHO_CXX) -c\
     147                $(flags)\
     148                -o $(obj)\
     149                $(outbase).ii
     150endef
     151else  # !USE_KOBJCACHE
     152TOOL_GCC4MACHO_COMPILE_CXX_OUTPUT =
    120153define TOOL_GCC4MACHO_COMPILE_CXX_CMDS
    121154        $(QUIET)$(TOOL_GCC4MACHO_CXX) -c\
     
    125158                $(abspath $(source))
    126159endef
     160endif # !USE_KOBJCACHE
    127161
    128162
  • trunk/kBuild/tools/GXX4MACHO.kmk

    r971 r1013  
    9191# @param    $(outbase)  Output basename (full). Use this for list files and such.
    9292# @param    $(objsuff)  Object suffix.
    93 TOOL_GXX4MACHO_COMPILE_C_OUTPUT =
    9493TOOL_GXX4MACHO_COMPILE_C_DEPEND =
    9594TOOL_GXX4MACHO_COMPILE_C_DEPORD =
     95ifdef USE_KOBJCACHE
     96TOOL_GXX4MACHO_COMPILE_C_USES_KOBJCACHE = 1
     97TOOL_GXX4MACHO_COMPILE_C_OUTPUT = $(outbase).i
     98define TOOL_GXX4MACHO_COMPILE_C_CMDS
     99        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).i \
     100                $(TOOL_GXX4MACHO_CC) -E -o -\
     101                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     102                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
     103                $(abspath $(source)) \
     104                --kObjCache-cc $(obj) \
     105                $(TOOL_GXX4MACHO_CC) -c\
     106                $(flags)\
     107                -o $(obj)\
     108                $(outbase).i
     109endef
     110else  # !USE_KOBJCACHE
     111TOOL_GXX4MACHO_COMPILE_C_OUTPUT =
    96112define TOOL_GXX4MACHO_COMPILE_C_CMDS
    97113        $(QUIET)$(TOOL_GXX4MACHO_CC) -c\
     
    101117                $(abspath $(source))
    102118endef
     119endif # !KUSE_OBJCACHE
    103120
    104121
     
    115132# @param    $(outbase)  Output basename (full). Use this for list files and such.
    116133# @param    $(objsuff)  Object suffix.
    117 TOOL_GXX4MACHO_COMPILE_CXX_OUTPUT =
    118134TOOL_GXX4MACHO_COMPILE_CXX_DEPEND =
    119135TOOL_GXX4MACHO_COMPILE_CXX_DEPORD =
     136ifdef USE_KOBJCACHE
     137TOOL_GXX4MACHO_COMPILE_CXX_USES_KOBJCACHE = 1
     138TOOL_GXX4MACHO_COMPILE_CXX_OUTPUT = $(outbase).ii
     139define TOOL_GXX4MACHO_COMPILE_CXX_CMDS
     140        $(QUIET)$(KOBJCACHE) -f $(outbase).koc -r --kObjCache-cpp $(outbase).ii \
     141                $(TOOL_GXX4MACHO_CXX) -E -o -\
     142                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     143                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
     144                $(abspath $(source)) \
     145                --kObjCache-cc $(obj) \
     146                $(TOOL_GXX4MACHO_CXX) -c\
     147                $(flags)\
     148                -o $(obj)\
     149                $(outbase).ii
     150endef
     151else  # !USE_KOBJCACHE
     152TOOL_GXX4MACHO_COMPILE_CXX_OUTPUT =
    120153define TOOL_GXX4MACHO_COMPILE_CXX_CMDS
    121154        $(QUIET)$(TOOL_GXX4MACHO_CXX) -c\
     
    125158                $(abspath $(source))
    126159endef
     160endif # !KUSE_OBJCACHE
    127161
    128162
Note: See TracChangeset for help on using the changeset viewer.

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