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 11# Boost Filesystem Library Build Jamfile
22
33# (C) Copyright Beman Dawes 2002-2006
4- # (C) Copyright Andrey Semashev 2020-2024
4+ # (C) Copyright Andrey Semashev 2020-2025
55# Distributed under the Boost Software License, Version 1.0.
66# See www.boost.org/LICENSE_1_0.txt
77
@@ -17,17 +17,21 @@ lib advapi32 ;
1717lib coredll ;
1818explicit bcrypt advapi32 coredll ;
1919
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 * )
2222{
23- if ( "<define>$(flag)" in $(properties) || "<define>$(flag)=1" in $(properties) )
23+ for local property in $(properties)
2424 {
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+ }
3032 }
33+
34+ return ;
3135}
3236
3337# 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