Ignore:
Timestamp:
Aug 2, 2011, 2:07:35 PM (14 years ago)
Author:
bird
Message:

header.kmk,footer*.kmk: Made sure that paths are absolute (KB_FN_ASSERT_ABSPATH w/ KBUILD_INTERNAL_STRICT=1). This may break dependencies on installed files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r2528 r2531  
    847847else
    848848 KB_FN_ASSIGN_DEPRECATED = $(eval $(subst :,$$(COLON),$1) = $2$$(warning $1 is deprecated, use $3 instead))
     849endif
     850
     851##
     852# Throw an error if the given path $1 isn't absolute and assertions are enabled.
     853#
     854# @param   $1   The name of the path variable to check.
     855#
     856ifdef KBUILD_INTERNAL_STRICT
     857 KB_FN_ASSERT_ABSPATH = $(if-expr "$(abspath $($(strip $1)))" != "$(strip $($(strip $1)))",\
     858        $(error kBuild abspath assertion failed: target=$(target) $1=$($(strip $1))))
     859else
     860 KB_FN_ASSERT_ABSPATH :=
    849861endif
    850862
Note: See TracChangeset for help on using the changeset viewer.