A flag, introduced in this patch: https://gem5-review.googlesource.com/c/public/gem5/+/68518 allowed users to pass "no-duplicate-sources" to a gem5 compilation to not symlink sources in the build directory. In this patch "src" was added as a shared top-level header directory. This means that the header files are not copied to the "build" directory whether or not "no-duplicate-sources" is set. This patch ensures the "src" directory is only added as a shared top-level headers directory in the case where "no-duplicate-sources" is set. In addition, the "duplicate_sources" parameter (the destination for the "no-duplicate-sources") was "None" by default, and only set to False when the flag was used. `default=True` has been added so "duplicate_sources" can be used as a boolean. This bug was a cause of a Nightly build error: https://jenkins.gem5.org/job/nightly/570 In this error, building ext/sst resulted in an error as the Makefile depends on adding "build/RISCV" to the include path. Without the header files in the "build" directory, building SST failed. Though, ext/stt should probably not be using header files in the "build/RISCV" directory. This will be fixed in another change. Change-Id: I786486a177fe17a67f3b939c539eecdcbfcaeaf2 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69717 Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu> Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
33 KiB
Executable File
33 KiB
Executable File