Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/48379 )

Change subject: scons: Eliminate flag_* entries from m5.defines.
......................................................................

scons: Eliminate flag_* entries from m5.defines.

These are not used anywhere, and are very old.

Change-Id: If37a8fe2e0c3374fba1930353e502746f333d86d
---
M src/SConscript
M src/python/pybind11/core.cc
2 files changed, 0 insertions(+), 24 deletions(-)



diff --git a/src/SConscript b/src/SConscript
index d508cbf..5339f20 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -733,18 +733,11 @@
     code = code_formatter()
     code("""
 import _m5.core
-import m5.util

 buildEnv = dict($build_env)

 compileDate = _m5.core.compileDate
 gem5Version = _m5.core.gem5Version
-_globals = globals()
-for key,val in _m5.core.__dict__.items():
-    if key.startswith('flag_'):
-        flag = key[5:]
-        _globals[flag] = val
-del _globals
 """)
     code.write(target[0].abspath)

diff --git a/src/python/pybind11/core.cc b/src/python/pybind11/core.cc
index 0e9c311..1bca941 100644
--- a/src/python/pybind11/core.cc
+++ b/src/python/pybind11/core.cc
@@ -86,18 +86,6 @@
 extern const char *compileDate;
 extern const char *gem5Version;

-#ifdef DEBUG
-const bool flag_DEBUG = true;
-#else
-const bool flag_DEBUG = false;
-#endif
-#ifdef NDEBUG
-const bool flag_NDEBUG = true;
-#else
-const bool flag_NDEBUG = false;
-#endif
-const bool flag_TRACING_ON = TRACING_ON;
-
 static void
 init_drain(py::module_ &m_native)
 {
@@ -300,11 +288,6 @@
     m_core.attr("compileDate") = py::cast(compileDate);
     m_core.attr("gem5Version") = py::cast(gem5Version);

-    m_core.attr("flag_DEBUG") = py::cast(flag_DEBUG);
-    m_core.attr("flag_DEBUG") = py::cast(flag_DEBUG);
-    m_core.attr("flag_NDEBUG") = py::cast(flag_NDEBUG);
-    m_core.attr("flag_TRACING_ON") = py::cast(flag_TRACING_ON);
-
     m_core.attr("MaxTick") = py::cast(MaxTick);

     /*

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48379
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: If37a8fe2e0c3374fba1930353e502746f333d86d
Gerrit-Change-Number: 48379
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to