Changeset 9047 for trunk/make


Ignore:
Timestamp:
Aug 20, 2002, 9:05:24 AM (23 years ago)
Author:
bird
Message:

BUILD_FORWARDING flag. Found problem when _BUILD_PROJECT isn't yet set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/setup.mak

    r8715 r9047  
    1 # $Id: setup.mak,v 1.10 2002-06-19 02:16:41 bird Exp $
     1# $Id: setup.mak,v 1.11 2002-08-20 07:05:24 bird Exp $
    22
    33#
     
    268268MAKE_INCLUDE_PROCESS = $(PATH_MAKE)\process.forwarder.mak
    269269
     270# Debug - find the reason for forwarding.
     271#! if 0
     272#!  if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)"
     273#!   if [echo debug - _BUILD_PROJECT: "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)"]
     274#!   endif
     275#!  endif
     276#!  if "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)"
     277#!   if [echo debug - BUILD_ENV: "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)"]
     278#!   endif
     279#!  endif
     280#!  if "$(BUILD_ENVS_PRE)" != ""
     281#!   if [echo debug - BUILD_ENVS_PRE: "$(BUILD_ENVS_PRE)" != ""]
     282#!   endif
     283#!  endif
     284#!  if "$(BUILD_ENVS_POST)" != ""
     285#!   if [echo debug - BUILD_ENVS_POST: "$(BUILD_ENVS_POST)" != ""]
     286#!   endif
     287#!  endif
     288#! endif
     289
     290# flag that we're forwarding.
     291BUILD_FORWARDING = 1
     292
    270293# set the secret _build_project env.var.
    271 !if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)"
    272 ! if [set _BUILD_PROJECT=$(BUILD_PROJECT)]
     294# Note: This 'SET' operation doesn't allways work as designed.
     295#       Therefore we have a workaround in the forwarder statement which makes
     296#       sure that the internal variable is set. The problem seems to be to
     297#       create new environment variables.
     298! if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)"
     299!  if [SET _BUILD_PROJECT=$(BUILD_PROJECT)]
     300!  endif
    273301! endif
    274 !endif
    275302
    276303# Compiler change or just environment change.
     
    299326! endif
    300327
     328!else
     329# Flag that we're not forwarding
     330BUILD_FORWARDING = 0
    301331!endif
    302332
Note: See TracChangeset for help on using the changeset viewer.