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

CMake: more MinGW fixes #2097

Closed
wants to merge 5 commits into from
Closed

CMake: more MinGW fixes #2097

wants to merge 5 commits into from

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Apr 5, 2017

@siying this is a resubmission of #2081 with the 4th commit fixed. From that commit message:

Note that the previous use of quotes in PLATFORM_{CC,CXX}FLAGS was
incorrect and caused GCC to produce the incorrect define:

#define ROCKSDB_JEMALLOC -DJEMALLOC_NO_DEMANGLE 1

This was the cause of the Linux build failure on the previous version
of this change.

I've tested this locally, and the Linux build succeeds now.

Modeled after SNAPPY_ROOT_DIR. Also removes a stale comment referring
to "UUID_FOUND", which isn't a thing.
Defining JEMALLOC_NO_DEMANGLE causes the preprocessor to expand
various je_ symbols to the correct name, regardless of the configured
prefix in the user's jemalloc installation.

See https://github.com/jemalloc/jemalloc/blob/4.5.0/include/jemalloc/jemalloc_mangle.sh#L28:L34.

Note that the previous use of quotes in PLATFORM_{CC,CXX}FLAGS was
incorrect and caused GCC to produce the incorrect define:

  #define ROCKSDB_JEMALLOC -DJEMALLOC_NO_DEMANGLE 1

This was the cause of the Linux build failure on the previous version
of this change.
This incorrectly exported

	GTEST_THROW_ON_FAILURE='1 GTEST_HAS_EXCEPTIONS=1'

which did not seem to be the intent.
@facebook-github-bot
Copy link
Contributor

@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@siying
Copy link
Contributor

siying commented Apr 6, 2017

@tamird thanks for fixing this. I'll merge as soon as tests pass.

@tamird
Copy link
Contributor Author

tamird commented Apr 6, 2017

@siying looks like something failed, but I can't tell if it's related to this PR.

@yiwu-arbug
Copy link
Contributor

Seems test failures are not related to this PR. Landing.

@tamird tamird deleted the find-jemalloc branch April 6, 2017 21:16
mikhail-antonov pushed a commit to mikhail-antonov/rocksdb that referenced this pull request Apr 12, 2017
Summary:
siying this is a resubmission of facebook#2081 with the 4th commit fixed. From that commit message:

> Note that the previous use of quotes in PLATFORM_{CC,CXX}FLAGS was
incorrect and caused GCC to produce the incorrect define:
>
>  #define ROCKSDB_JEMALLOC -DJEMALLOC_NO_DEMANGLE 1
>
> This was the cause of the Linux build failure on the previous version
of this change.

I've tested this locally, and the Linux build succeeds now.
Closes facebook#2097

Differential Revision: D4839964

Pulled By: siying

fbshipit-source-id: cc51322
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.

None yet

4 participants