Skip to content
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

Extend preprocessor LLVM version checks to support LLVM 4.x #36742

Merged
merged 1 commit into from Sep 27, 2016

Conversation

Projects
None yet
6 participants
@shepmaster
Copy link
Member

shepmaster commented Sep 26, 2016

This doesn't actually do anything for LLVM 4.x yet, but sets the stage.

@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Sep 26, 2016

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@sanxiyn

This comment has been minimized.

Copy link
Member

sanxiyn commented Sep 26, 2016

cc #36295

@alexcrichton
Copy link
Member

alexcrichton left a comment

Thanks @shepmaster! Looks great to me.

@@ -45,7 +45,16 @@
#include "llvm-c/ExecutionEngine.h"
#include "llvm-c/Object.h"

#if LLVM_VERSION_MINOR >= 7
#define LLVM_VERSION_GT_OR_EQ(major, minor) \
LLVM_VERSION_MAJOR > (major) || LLVM_VERSION_MAJOR == (major) && LLVM_VERSION_MINOR >= (minor)

This comment has been minimized.

@alexcrichton

alexcrichton Sep 26, 2016

Member

Could this entire clause also be wrapped in parens? (yay C macros)

same below as well

This comment has been minimized.

@shepmaster

shepmaster Sep 26, 2016

Author Member

Done!

Someone should really work on creating a replacement for this C language thing.

@@ -45,7 +45,16 @@
#include "llvm-c/ExecutionEngine.h"
#include "llvm-c/Object.h"

#if LLVM_VERSION_MINOR >= 7
#define LLVM_VERSION_GT_OR_EQ(major, minor) \

This comment has been minimized.

@alexcrichton

alexcrichton Sep 26, 2016

Member

Perhaps this could be LLVM_VERSION_GE?

Similar to ParialOrd::ge naming at least

This comment has been minimized.

@shepmaster

shepmaster Sep 26, 2016

Author Member

Done!

Extend preprocessor LLVM version checks to support LLVM 4.x
This doesn't actually do anything for LLVM 4.x yet, but sets the stage.

@shepmaster shepmaster force-pushed the shepmaster:llvm-4-preamble branch from c7341e5 to e6e117c Sep 26, 2016

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Sep 26, 2016

@bors: r+

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Sep 26, 2016

📌 Commit e6e117c has been approved by alexcrichton

jonathandturner added a commit to jonathandturner/rust that referenced this pull request Sep 26, 2016

Rollup merge of rust-lang#36742 - shepmaster:llvm-4-preamble, r=alexc…
…richton

Extend preprocessor LLVM version checks to support LLVM 4.x

This doesn't actually do anything for LLVM 4.x yet, but sets the stage.

jonathandturner added a commit to jonathandturner/rust that referenced this pull request Sep 27, 2016

Rollup merge of rust-lang#36742 - shepmaster:llvm-4-preamble, r=alexc…
…richton

Extend preprocessor LLVM version checks to support LLVM 4.x

This doesn't actually do anything for LLVM 4.x yet, but sets the stage.

bors added a commit that referenced this pull request Sep 27, 2016

bors added a commit that referenced this pull request Sep 27, 2016

@bors bors merged commit e6e117c into rust-lang:master Sep 27, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@shepmaster shepmaster deleted the shepmaster:llvm-4-preamble branch Nov 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.