summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d6d83c6)
.platform and .family files can use %F when adding to includes. %F is
replaced with the family dir at build time.
$platform_dir =~ s!/\.platform$!!;
push @includes, $platform_dir unless $nostdinc;
do $platform_def;
$platform_dir =~ s!/\.platform$!!;
push @includes, $platform_dir unless $nostdinc;
do $platform_def;
-do $family_def if -f $family_def;
+if (-f $family_def) {
+ $family_dir = $family_def;
+ $family_dir =~ s!/\.family$!!;
+ do $family_def
+}
unshift @new_args, "-DPLATFORM_\U$target";
push @new_args, @opts;
unshift @new_args, "-DPLATFORM_\U$target";
push @new_args, @opts;
$rep = $TOSDIR if $char eq "T";
$rep = $target if $char eq "p";
$rep = $platform_dir if $char eq "P";
$rep = $TOSDIR if $char eq "T";
$rep = $target if $char eq "p";
$rep = $platform_dir if $char eq "P";
+ $rep = $family_dir if $char eq "F";
&fail("unknown include-path substitution %" . $char) if !$rep;
substr($idir, $idx, 2) = $rep;
$idx += length $rep;
&fail("unknown include-path substitution %" . $char) if !$rep;
substr($idir, $idx, 2) = $rep;
$idx += length $rep;