-
Notifications
You must be signed in to change notification settings - Fork 0
/
system-include.jam
30 lines (26 loc) · 1.01 KB
/
system-include.jam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2016 DeviantArt Inc.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import feature ;
feature.feature system-include : : free path ;
##################################################################
##
## reimplement 'adjust-properties' method from
## boost.build builtin class 'compile-action'
##
## support <system-include>
##
##################################################################
# save original class@compile-action.adjust-properties
IMPORT class@compile-action : adjust-properties :
class@compile-action : system-include-orig-adjust-properties ;
module class@compile-action
{
rule adjust-properties ( property-set )
{
local sysinc = [ $(property-set).get <system-include> ] ;
return [ system-include-orig-adjust-properties [
$(property-set).add-raw "<cflags>-isystem "$(sysinc)
] ] ;
}
}