-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support building on AIX 7.2 with Clang #13397
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -58,7 +58,7 @@ Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. | |||||||||||||||||||||
#include <stdint.h> | ||||||||||||||||||||||
#include <sys/time.h> | ||||||||||||||||||||||
#include <time.h> | ||||||||||||||||||||||
#if defined(__powerpc__) | ||||||||||||||||||||||
#if !defined(OS_AIX) && defined(__powerpc__) | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for Linux on power that does have the header There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh right, I misread the code changes. Thought you had:
What you have looks good. |
||||||||||||||||||||||
#include <sys/platform/ppc.h> | ||||||||||||||||||||||
#endif | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
@@ -131,6 +131,8 @@ static inline tokutime_t toku_time_now(void) { | |||||||||||||||||||||
uint64_t result; | ||||||||||||||||||||||
__asm __volatile__("mrs %[rt], cntvct_el0" : [rt] "=r"(result)); | ||||||||||||||||||||||
return result; | ||||||||||||||||||||||
#elif defined(OS_AIX) | ||||||||||||||||||||||
return __builtin_ppc_get_timebase(); | ||||||||||||||||||||||
#elif defined(__powerpc__) | ||||||||||||||||||||||
return __ppc_get_timebase(); | ||||||||||||||||||||||
Comment on lines
+134
to
137
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Nit: personal preference to keep the Power targets together. |
||||||||||||||||||||||
#elif defined(__s390x__) | ||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we have
sys/endian.h
on AIX. You can usesys/machine.h
for the ENDIAN macros.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, added now