VirtualBox

Changeset 3383 in kBuild


Ignore:
Timestamp:
Jun 16, 2020 3:56:15 PM (5 years ago)
Author:
bird
Message:

units/vccprecomp.kmk: Pick up the PCHTOOL rather than LDTOOL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/units/vccprecomp.kmk

    r3285 r3383  
    5050#
    5151# This sets up a rule for creating the .pch file after qt5 and similar units
    52 # are done modifying INCS, DEFS and company.  The 'tool' variable is defined by
    53 # footer-pass2-compiling-targets.kmk and is really the LD tool, but that'll
    54 # have to do for now.  The '-PCH' variant of the VCC tool, is defined together
    55 # with $(tool) and allow us to bypass the options and dependencies triggered
    56 # by _1_VCC_PCH_FILE, _1_VCC_COMMON_OBJ_PDB and _PCH_HDR, and also make sure we
    57 # don't get circular dependencies by way of kDepObj and the debug info.
     52# are done modifying INCS, DEFS and company.  The '-PCH' variant of the VCC
     53# tool, is defined together with $(pchtool) and allow us to bypass the options
     54# and dependencies triggered by _1_VCC_PCH_FILE, _1_VCC_COMMON_OBJ_PDB and
     55# _PCH_HDR, and also make sure we  don't get circular dependencies by way of
     56# kDepObj and the debug info.
    5857#
    5958define def_unit_vccprecomp_target_pre_2
    60  local source := $($(target)_PCH_HDR)
    61  $(source)_TOOL := $(tool)-PCH
    62  local suff   := $(suffix $(source))
    63  local type   := CXX
     59 local pchtool  := $(call _TARGET_TOOL,$(target),PCH)
     60 local source   := $($(target)_PCH_HDR)
     61 $(source)_TOOL := $(pchtool)-PCH
     62 local suff     := $(suffix $(source))
     63 local type     := CXX
    6464 $(kb-src-one 3)
    6565endef
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