File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Boost Filesystem Library Build Jamfile
2
2
3
3
# (C) Copyright Beman Dawes 2002-2006
4
- # (C) Copyright Andrey Semashev 2020-2024
4
+ # (C) Copyright Andrey Semashev 2020-2025
5
5
# Distributed under the Boost Software License, Version 1.0.
6
6
# See www.boost.org/LICENSE_1_0.txt
7
7
@@ -17,17 +17,21 @@ lib advapi32 ;
17
17
lib coredll ;
18
18
explicit bcrypt advapi32 coredll ;
19
19
20
- # The rule checks if a config macro is defined in the command line or build properties
21
- rule has-config-flag ( flag : properties * )
20
+ # The rule checks if there is one of the defines listed in `flags` in ` properties`. The value of the define is not considered.
21
+ rule has-config-flag ( flags + : properties * )
22
22
{
23
- if ( "<define>$(flag)" in $(properties) || "<define>$(flag)=1" in $(properties) )
23
+ for local property in $(properties)
24
24
{
25
- return 1 ;
26
- }
27
- else
28
- {
29
- return ;
25
+ for local flag in $(flags)
26
+ {
27
+ if [ MATCH "^(<define>$(flag))(=.*)?$" : $(property) ]
28
+ {
29
+ return 1 ;
30
+ }
31
+ }
30
32
}
33
+
34
+ return ;
31
35
}
32
36
33
37
# The rule checks we're building for Windows and selects crypto API to be used
You can’t perform that action at this time.
0 commit comments