From fccd13ac85b7b11409e0f92b81cb64345e51b079 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Wed, 8 Mar 2023 09:37:34 +0000 Subject: [PATCH] scons: default to not duplicating sources in the build directory We now default to --no-duplicate-sources, but keep --duplicate-sources to opt-out of this new build behaviour in case it introduces regressions. Change-Id: I2f01ceaef7b6b9bff80f4402081f007110f7e6f3 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68758 Maintainer: Bobby Bruce Reviewed-by: Bobby Bruce Tested-by: kokoro --- SConstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index e09f0d5a5b..9b25b33783 100755 --- a/SConstruct +++ b/SConstruct @@ -145,7 +145,13 @@ AddOption('--gprof', action='store_true', help='Enable support for the gprof profiler') AddOption('--pprof', action='store_true', help='Enable support for the pprof profiler') -AddOption('--no-duplicate-sources', action='store_false', default=True, +# Default to --no-duplicate-sources, but keep --duplicate-sources to opt-out +# of this new build behaviour in case it introduces regressions. We could use +# action=argparse.BooleanOptionalAction here once Python 3.9 is required. +AddOption('--duplicate-sources', action='store_true', default=False, + dest='duplicate_sources', + help='Create symlinks to sources in the build directory') +AddOption('--no-duplicate-sources', action='store_false', dest='duplicate_sources', help='Do not create symlinks to sources in the build directory')