Ignore:
Timestamp:
Jan 2, 2019, 11:17:28 PM (7 years ago)
Author:
bird
Message:

GXX3.kmk,footer*.kmk: Turns out pch + kObjCache actually does help with build performance. Working on making the kObjCache bits more flexible by introducing a target level use_objcache variable during expansion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer-pass2-compiling-targets.kmk

    r3160 r3256  
    5757$(obj): .MUST_MAKE = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_CMDS_PREV_),$$(commands $$@),FORCE)
    5858endif
    59 ifdef TOOL_$(tool)_COMPILE_$(type)_USES_KOBJCACHE
     59ifneq ($(TOOL_$(tool)_COMPILE_$(type)_USES_KOBJCACHE),)
    6060_OUT_FILES += $(outbase).koc
    6161$(outbase).koc +| $(obj) $($(target)_$(source)_OUTPUT_) $($(target)_$(source)_OUTPUT_MAYBE_) : \
     
    499499$(foreach unit,$(units),$(evalvalctx def_unit_$(unit)_target_pre))
    500500$(foreach unit,$(units),$(evalvalctx def_unit_$(unit)_target_pre_2))
     501
     502# kObjCache.
     503ifdef KBUILD_USE_KOBJCACHE
     504 ifneq ($($(target)_KOBJCACHE),)
     505local use_objcache := 1
     506 else
     507local use_objcache :=
     508 endif
     509local use_objcache :=
     510endif
    501511
    502512# source -> object
     
    704714$(foreach unit,$(units),$(evalvalctx def_unit_$(unit)_target_pre))
    705715$(foreach unit,$(units),$(evalvalctx def_unit_$(unit)_target_pre_2))
     716
     717# kObjCache.
     718ifdef KBUILD_USE_KOBJCACHE
     719 ifneq ($($(target)_KOBJCACHE),)
     720local use_objcache := 1
     721 else
     722local use_objcache :=
     723 endif
     724local use_objcache :=
     725endif
    706726
    707727# source -> object
Note: See TracChangeset for help on using the changeset viewer.