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

Change subject: scons: Move a displaced have_posix_clock check back where it goes.
......................................................................

scons: Move a displaced have_posix_clock check back where it goes.

This check had been separated from the code handling have_posix_clock by
some intervening code doing something else. Bring the check back
alongside the code setting that variable.

Change-Id: I6acb54fddbb5c41d6c38d4b93e649835a4775fa0
---
M SConstruct
1 file changed, 2 insertions(+), 3 deletions(-)



diff --git a/SConstruct b/SConstruct
index 868cf5b..65125ba 100755
--- a/SConstruct
+++ b/SConstruct
@@ -640,6 +640,8 @@
                             'clock_nanosleep(0,0,NULL,NULL);') or \
     conf.CheckLibWithHeader('rt', 'time.h', 'C',
                             'clock_nanosleep(0,0,NULL,NULL);')
+if not have_posix_clock:
+    warning("Can't find library for POSIX clocks.")

 have_posix_timers = \
     conf.CheckLibWithHeader([None, 'rt'], [ 'time.h', 'signal.h' ], 'C',
@@ -674,9 +676,6 @@
     default_backtrace_impl = "none"
     warning("No suitable back trace implementation found.")

-if not have_posix_clock:
-    warning("Can't find library for POSIX clocks.")
-
 # Check for <fenv.h> (C99 FP environment control)
 have_fenv = conf.CheckHeader('fenv.h', '<>')
 if not have_fenv:

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/40862
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: I6acb54fddbb5c41d6c38d4b93e649835a4775fa0
Gerrit-Change-Number: 40862
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