Files
build/test/toolset-mock/project-config.jam
T
Alexander Grund 26ad6ed14f Fix using ccache with clang-linux toolset (#605)
* Fix using ccache with clang-linux toolset

When using ccache with `using clang : : ccache clang++-3.6 ;` then `common.get-absolute-tool-path` fails.

Use the last element as done for gcc

* Add test for clang-win auto-deducing ar
2026-07-14 22:11:30 -05:00

41 lines
1.5 KiB
Plaintext

# Copyright 2017 Steven Watanabe
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.bfgroup.xyz/b2/LICENSE.txt)
import modules ;
import os ;
import toolset ;
path-constant here : . ;
local PYTHON = [ os.environ PYTHON_CMD ] ;
local ar = <archiver>$(PYTHON)\"\ \"$(here)/src/ar.py ;
using gcc : 4.8.3 : $(PYTHON) $(here)/src/gcc-4.8.3-linux.py : $(ar) : <target-os>linux ;
using gcc : 4.2.1 : $(PYTHON) $(here)/src/gcc-4.2.1-darwin.py : $(ar) : <target-os>darwin ;
# hard-code this to make the test work on other platforms
modules.poke darwin : .host-osx-version : 10.11.0 ;
using darwin : 4.2.1 : $(PYTHON) $(here)/src/darwin-4.2.1.py
: <archiver>$(PYTHON)\"\ \"$(here)/src/libtool.py
<striper>$(PYTHON)\"\ \"$(here)/src/strip.py
: <target-os>darwin
;
using clang-darwin : 3.9.0 : $(PYTHON) $(here)/src/clang-3.9.0-darwin.py : $(ar) ;
using clang-linux : 3.9.0 : $(PYTHON) $(here)/src/clang-linux-3.9.0.py : $(ar) ;
# Let clang-linux auto-deduce the archiver
using clang-linux : 3.9.1 : $(PYTHON) $(here)/src/clang-linux-3.9.0.py ;
using clang-vxworks : 4.0.1 : $(PYTHON) $(here)/src/clang-vxworks-4.0.1.py : $(ar) ;
using intel-darwin : 10.2 : $(PYTHON) $(here)/src/intel-darwin-10.2.py : $(ar) ;
# TODO: msvc toolset should not require this env variable to be presented
modules.poke .ENVIRON : PROCESSOR_ARCHITEW6432 : amd64 ;
using msvc : 14.3 : :
<compiler>\"$(PYTHON)\"\ \"$(here)/src/msvc-14.3.py\"
<linker>\"$(PYTHON)\"\ \"$(here)/src/linkx.py\"
;