scons: Move the "duplicate" setting into gem5_env_defaults.py.

This is a generic default environment setting, and so should go
alongside all the other generic default environment settings.

Change-Id: If3032a4893dd84f7c7d77e7e9420436ab445cf2b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40967
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
Gabe Black
2021-02-08 02:01:43 -08:00
parent 789b6eb615
commit 6ca6f41052
2 changed files with 6 additions and 6 deletions

View File

@@ -203,12 +203,6 @@ Export('main')
main.SConsignFile(os.path.join(build_root, "sconsign")) main.SConsignFile(os.path.join(build_root, "sconsign"))
# Default duplicate option is to use hard links, but this messes up
# when you use emacs to edit a file in the target dir, as emacs moves
# file to file~ then copies to file, breaking the link. Symbolic
# (soft) links work better.
main.SetOption('duplicate', 'soft-copy')
# #
# Set up global sticky variables... these are common to an entire build # Set up global sticky variables... these are common to an entire build
# tree (not specific to a particular build like X86) # tree (not specific to a particular build like X86)

View File

@@ -71,3 +71,9 @@ def EnvDefaults(env):
# add useful python code PYTHONPATH so it can be used by subprocesses # add useful python code PYTHONPATH so it can be used by subprocesses
# as well # as well
env.AppendENVPath('PYTHONPATH', extra_python_paths) env.AppendENVPath('PYTHONPATH', extra_python_paths)
# Default duplicate option is to use hard links, but this messes up
# when you use emacs to edit a file in the target dir, as emacs moves
# file to file~ then copies to file, breaking the link. Symbolic
# (soft) links work better.
env.SetOption('duplicate', 'soft-copy')