Subject: [Boost-bugs] [Boost C++ Libraries] #9398: get-invocation-command is not using user provided value in some cases
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-15 14:19:35
#9398: get-invocation-command is not using user provided value in some cases
----------------------------+------------------------------
Reporter: nison.mael@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.54.0
Severity: Problem | Keywords:
----------------------------+------------------------------
Notably, the problem appears when trying to specify a custom <archiver> or
<ranlib> option to either gcc or clang toolchains (the latter deriving
from the former.
The get-invocation-command rule executes a shell command then return the
output, or the user provided value if the execution did not output
anything.
However, it means that the user cannot overwrite the tools paths and has
to manually patch the toolset file to hardcode the tool path, which is an
issue.
The easy fix would be to check for an option before calling get-
invocation-command (at least in gcc.jam, but it is possible that other
toolsets are also affected). A maybe-not-so-easy-fix would be to change
get-invocation-command behavior to return the user provided value if there
is one, and to call the specified command if there is none (so the
opposite of what is currently done).
tl;dr : '''tools/build/v2/user-config.jam'''
{{{
using clang
: 3.3
: /home/arcanis/emscripten/emcc
: <archiver>"/home/arcanis/emscripten/archiver"
<ranlib>"/home/arcanis/emscripten/emranlib" ;
}}}
Doesn't (cannot) work
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9398> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC