Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/40863 )
Change subject: scons: Simplify check for have_posix_clock.
......................................................................
scons: Simplify check for have_posix_clock.
The "library" argument can actually be a list, in which case each
element of the list is checked, one after the other. Use that rather
than calling the CheckLibWithHeader method multiple times and manually
oring the results.
Change-Id: I5c774be15eaa9a7e52ec3ee5a1bbcc5ef1fa0f41
---
M SConstruct
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/SConstruct b/SConstruct
index 65125ba..ec4a83f 100755
--- a/SConstruct
+++ b/SConstruct
@@ -636,9 +636,7 @@
# Check for librt.
have_posix_clock = \
- conf.CheckLibWithHeader(None, 'time.h', 'C',
- 'clock_nanosleep(0,0,NULL,NULL);') or \
- conf.CheckLibWithHeader('rt', 'time.h', 'C',
+ conf.CheckLibWithHeader([None, 'rt'], 'time.h', 'C',
'clock_nanosleep(0,0,NULL,NULL);')
if not have_posix_clock:
warning("Can't find library for POSIX clocks.")
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/40863
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: I5c774be15eaa9a7e52ec3ee5a1bbcc5ef1fa0f41
Gerrit-Change-Number: 40863
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
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