-
Notifications
You must be signed in to change notification settings - Fork 4k
fix build on ppc64le #8141
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
fix build on ppc64le #8141
Conversation
|
|
compiler/build.gradle
Outdated
| linker.args "-static", "-lprotoc", "-lprotobuf", "-static-libgcc", "-static-libstdc++", | ||
| "-s" | ||
| } else { | ||
| }else if (System.getProperty('os.arch').contains('ppc64')){ |
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.
why not use osdetector.arch instead of System.getProperty('os.arch')? Also indent/format needs to be consistent
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.
@sanjaypujare I have made the change to use osdetector.arch as suggested. Thanks
compiler/build.gradle
Outdated
| "-s" | ||
| } else { | ||
| } else if (osdetector.arch == "ppcle_64") { | ||
| linker.args "-Wl,-Bstatic", "-lprotoc", "-lprotobuf", "-Wl,-Bdynamic", "-lpthread", "-s" |
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.
Pls align the linker.args... statement with the one on line 101 to start at the same column
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.
@sanjaypujare have fixed these too, thanks .
compiler/build.gradle
Outdated
| } else { | ||
| } else if (osdetector.arch == "ppcle_64") { | ||
| linker.args "-Wl,-Bstatic", "-lprotoc", "-lprotobuf", "-Wl,-Bdynamic", "-lpthread", "-s" | ||
| }else { |
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.
Space before else so it is
} else {
sanjaypujare
left a comment
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.
Couple of comments left
compiler/build.gradle
Outdated
| } else { | ||
| } else if (osdetector.arch == "ppcle_64") { | ||
| linker.args "-Wl,-Bstatic", "-lprotoc", "-lprotobuf", "-Wl,-Bdynamic", "-lpthread", "-s" | ||
| } else { |
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.
The indentation is still incorrect. Ideally it should show only 2 lines added before line 103 but because of your changes it shows deleting line 103 and adding 3 lines (103-105). Because of mismatched indentation the else clause also aligns with the wrong if clause. Take a look at the diff shown by github and you will see.
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.
Hi @sanjaypujare does it look okay now with the current indentation ?
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.
Yes. Merged already
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.
thanks @sanjaypujare
This fixes build on ppc64le on RHEL8 . As referenced in #7757