From d89ba08eb031dff1704261441a4eb21104ca7694 Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Mon, 12 Jun 2023 15:31:04 -0700 Subject: [PATCH] python: Ignore -s as gem5 option This enables more compatibility with the normal python binary. This is needed to get multiprocessing to work on some systems. Change-Id: Ibb946136d153979bf54a773060010a0ae479a9d1 Signed-off-by: Jason Lowe-Power Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/71518 Maintainer: Bobby Bruce Reviewed-by: Bobby Bruce Tested-by: kokoro --- src/python/m5/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/python/m5/main.py b/src/python/m5/main.py index a68279b633..4701dfa5ea 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -193,6 +193,13 @@ def parse_options(): callback=collect_args, ) + option( + "-s", + action="store_true", + help="IGNORED, only for compatibility with python. don't" + "add user site directory to sys.path; also PYTHONNOUSERSITE", + ) + # Statistics options group("Statistics Options") option(