Bobby R. Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/31734 )

Change subject: util,tests: Enable passing of build args to compiler-tests.sh
......................................................................

util,tests: Enable passing of build args to compiler-tests.sh

Previously we passed "-j `nproc`" to the scons. This a greedy approach
that should not be default. This change was introduced so the "-j" flag
may be passed via the "util/compiler-tests.sh" script.

Change-Id: I2e891ae3a9819770bd3ef15b95b81b7f5b71f7fa
---
M util/compiler-tests.sh
1 file changed, 1 insertion(+), 2 deletions(-)



diff --git a/util/compiler-tests.sh b/util/compiler-tests.sh
index c586c27..c8fce4b 100755
--- a/util/compiler-tests.sh
+++ b/util/compiler-tests.sh
@@ -8,7 +8,6 @@
 dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 gem5_root="${dir}/.."
 build_dir="${gem5_root}/build"
-num_cores=`nproc`

 # All Docker images in the gem5 testing GCR which we want to compile with.
 images=("gcc-version-10"
@@ -61,7 +60,7 @@
 base_url="gcr.io/gem5-test"

 # Arguments passed into scons on every build target test.
-build_args="-j ${num_cores}"
+build_args="$@"

 # Testing directory variables
 mkdir -p "${build_dir}" # Create the build directory if it doesn't exist.

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/31734
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I2e891ae3a9819770bd3ef15b95b81b7f5b71f7fa
Gerrit-Change-Number: 31734
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to