Skip to content

Conversation

@rhl-
Copy link
Member

@rhl- rhl- commented Nov 29, 2016

This correctly determines the GMP version at least when GCC is used as a compiler. I'm not sure what happens with clang or any more exotic compiler, such as icc or vendor compilers.

The main thing is the flags: -dM -E

@rhl- rhl- added this to the Release 0.88 milestone Nov 29, 2016
@poulson
Copy link
Member

poulson commented Nov 29, 2016

Why not only perform the new approach of the compiler is already recognized as gcc?

@rhl-
Copy link
Member Author

rhl- commented Nov 29, 2016

it looks like this works with clang and gcc, and googling now suggests it works with icc. It seems likes most compilers support this, so, lets stick with it.

http://stackoverflow.com/questions/9349754/generate-list-of-preprocessor-macros-defined-by-the-compiler

@rhl- rhl- merged commit 48c9d72 into master Nov 29, 2016
rhl- added a commit that referenced this pull request Nov 29, 2016
This reverts commit 48c9d72, reversing
changes made to bd83108.
@jeffhammond jeffhammond deleted the fix_gmp_detection branch August 18, 2017 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants