Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Fix System.Native compilation on Linux #46

Merged
merged 1 commit into from
May 1, 2018
Merged

Conversation

luhenry
Copy link

@luhenry luhenry commented Apr 30, 2018

No description provided.

@luhenry
Copy link
Author

luhenry commented Apr 30, 2018

For mono/mono#8051

@luhenry luhenry changed the title Fix compilation on Linux Fix System.Native compilation on Linux Apr 30, 2018
#ifdef static_assert
#define c_static_assert(e) static_assert((e),"")
#elif defined(__has_extension) && __has_extension(c_static_assert)
#elif __has_extension(c_static_assert)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it change needed if we have #define __has_extension() above? We can probably define these in makefile to keep the the files closer to the source.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's much simpler to keep the check in this header rather than spread it around in a Makefile. Especially since https://github.com/mono/corefx/pull/46/files#diff-a4c8175f5b95c7ffaebf40eccc196d7fR16 will be a no-op if it's already defined. Also, this change will be upstreamed.

@luhenry luhenry merged commit 343e8f2 into master May 1, 2018
@akoeplinger akoeplinger deleted the corefx-System.Native branch June 10, 2018 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant