From 0ed79849c1af9f313f3c956f6df22fd5010932f0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 3 Feb 2014 03:23:17 +0000 Subject: [PATCH] support msvc /RTC option and make run_regression_tests support passing on arbitrary boost-build options (to allow different testers enable rtc and sanitizers) --- Jamfile | 3 +++ tools/run_tests.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Jamfile b/Jamfile index a2fa488d3..d2cd3142b 100755 --- a/Jamfile +++ b/Jamfile @@ -338,9 +338,12 @@ feature ipv6 : on off : composite propagated link-incompatible ; feature.compose off : TORRENT_USE_IPV6=0 ; feature sanitize : off address undefined thread : composite propagated link-incompatible ; +# sanitize is a clang and GCC feature feature.compose address : -fsanitize=address -fsanitize-undefined-trap-on-error -fsanitize=address ; feature.compose undefined : -fsanitize=undefined -fsanitize=undefined ; feature.compose thread : -fsanitize=thread -fsanitize=thread ; +# RTC (runtime check) is an msvc feature +feature.compose rtc : /RTCc /RTCsu ; feature need-librt : no yes : composite propagated link-incompatible ; diff --git a/tools/run_tests.py b/tools/run_tests.py index a1ed383e3..172075e54 100755 --- a/tools/run_tests.py +++ b/tools/run_tests.py @@ -158,7 +158,7 @@ def run_tests(toolset, tests, features, options, test_dir, time_limit): return (toolset, results) def print_usage(): - print '''usage: run_tests.py [options] bjam-toolset [bjam-toolset...] + print '''usage: run_tests.py [options] bjam-toolset [bjam-toolset...] [bjam-option...] options: -j use n parallel processes -h prints this message and exits @@ -193,6 +193,8 @@ def main(argv): print 'unknown option: %s' % arg print_usage() sys.exit(1) + elif '=' in arg: + options.append(arg) else: toolsets.append(arg)