# Copyright 2013, 2017-2018 Cray, Inc.
#
# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
+# (See accompanying file LICENSE.txt or copy at
+# https://www.bfgroup.xyz/b2/LICENSE.txt)
# README.md
#
# Archive builder.
local command-ar = [ validate-command $(toolset) ar ] ;
- # Archive indexer.
- local command-ranlib = [ validate-command $(toolset) ranlib ] ;
-
# The 'command' variables always have one element, but they may contain
# spaces (e.g. if 'command' is an absolute path and some path components
# have spaces).
handle-options
$(toolset)
: $(identifying-condition)
- : $(command-c) $(command-cxx) $(command-fortran) $(command-ar) $(command-ranlib)
+ : $(command-c) $(command-cxx) $(command-fortran) $(command-ar)
: $(options) ;
# Add compiler version to 'VERSION' variable on all targets. 'VERSION' is
: toolset initialization failed
: please load the PrgEnv-$(default-compiler) module next time ;
# Do not abort, as suggested by:
- # http://www.boost.org/build/doc/html/bbv2/extending/toolset_modules.html.
+ # https://www.bfgroup.xyz/b2/manual/release/index.html#bbv2.extending.toolset_modules.
}
}
# Variable names with a '.' prefix are intended to be globals.
#
- # Refer to:
- # https://github.com/boostorg/build/blob/develop/CONTRIBUTING.rst
+ # Refer to: CONTRIBUTING.adoc
# The Jam language uses dynamic scoping. Setting '.debug-configuration' in
# this module influences the behavior of methods called from this module.
actions piecemeal archive
{
- "$(.AR)" $(AROPTIONS) rc "$(<)" "$(>)"
- "$(.RANLIB)" "$(<)"
+ "$(.AR)" $(AROPTIONS) rsc "$(<)" "$(>)"
}
###
# Copied from 'gcc.jam'.
SPACE on $(targets) = " " ;
- # Serialize execution of the 'link' action, since running N links in
- # parallel is just slower. For now, serialize only gcc links, it might be a
- # good idea to serialize all links.
- JAM_SEMAPHORE on $(targets) = <s>gcc-link-semaphore ;
gcc.quote-rpath $(targets) ;
}
# Copied from 'gcc.jam'.
SPACE on $(targets) = " " ;
- JAM_SEMAPHORE on $(targets) = <s>gcc-link-semaphore ;
gcc.quote-rpath $(targets) ;
}
rule handle-options (
toolset
: toolset-condition *
- : command-c command-cxx command-fortran command-ar command-ranlib
+ : command-c command-cxx command-fortran command-ar
: options *
)
{
toolset.flags $(toolset) CONFIG_COMMAND_CXX $(toolset-condition) : $(command-cxx) : unchecked ;
toolset.flags $(toolset) CONFIG_COMMAND_FORTRAN $(toolset-condition) : $(command-fortran) : unchecked ;
toolset.flags $(toolset).archive .AR $(toolset-condition) : $(command-ar) : unchecked ;
- toolset.flags $(toolset).archive .RANLIB $(toolset-condition) : $(command-ranlib) : unchecked ;
# The following flags are applied to all targets built by this
# configuration of this toolset. This particular configuration of this