From 1d796edf59da644e91bd443505fb76e0397a1439 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 23 Nov 2019 10:44:39 +0100 Subject: Basic stress-test function for player. --- wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index fe1431316..c61b86782 100644 --- a/wscript +++ b/wscript @@ -73,6 +73,7 @@ def options(opt): opt.add_option('--workaround-gssapi', action='store_true', default=False, help='link to gssapi_krb5') opt.add_option('--force-cpp11', action='store_true', default=False, help='force use of C++11') opt.add_option('--variant', help='build variant (swaroop-studio, swaroop-theater)', choices=['swaroop-studio', 'swaroop-theater']) + opt.add_option('--enable-player-stress-test', action='store_true', default=False, help='build the player with stress testing enabled') opt.add_option('--use-lld', action='store_true', default=False, help='use lld linker') def configure(conf): @@ -133,6 +134,9 @@ def configure(conf): if conf.options.variant.startswith('swaroop-'): conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_SWAROOP') + if conf.options.enable_player_stress_test: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_PLAYER_STRESS_TEST') + if conf.options.use_lld: try: conf.find_program('ld.lld') -- cgit v1.2.3