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

LIBCXX related fixes #2111

Merged
merged 4 commits into from Dec 21, 2020
Merged

LIBCXX related fixes #2111

merged 4 commits into from Dec 21, 2020

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Oct 25, 2020

Summary

LIBCXX related fixes

Impact

Testing

See #2063

@yamt yamt mentioned this pull request Oct 25, 2020
libs/libxx/libcxx.defs Show resolved Hide resolved
libs/libxx/libcxx-misc.patch Outdated Show resolved Hide resolved
@jerpelea
Copy link
Contributor

LGTM

@xiaoxiang781216
Copy link
Contributor

@yamt do we still need this PR? I am asking this question is that most change has been moved to other PR now.

boards/sim/sim/sim/scripts/Make.defs Outdated Show resolved Hide resolved
boards/sim/sim/sim/scripts/Make.defs Outdated Show resolved Hide resolved
boards/sim/sim/sim/scripts/Make.defs Show resolved Hide resolved
@yamt yamt force-pushed the sim-libcxx branch 2 times, most recently from 5c3d8b3 to c725525 Compare December 15, 2020 07:20
@yamt yamt marked this pull request as ready for review December 15, 2020 07:20
@yamt
Copy link
Contributor Author

yamt commented Dec 21, 2020

@xiaoxiang781216 do you still have any concern?

@xiaoxiang781216
Copy link
Contributor

The only concern is that "CXXFLAGS += -std=c++14 -D_LIBCPP_STD_VER=14", should we keep the default one from gcc/clang?

@yamt
Copy link
Contributor Author

yamt commented Dec 21, 2020

The only concern is that "CXXFLAGS += -std=c++14 -D_LIBCPP_STD_VER=14", should we keep the default one from gcc/clang?

ok, let me try to remove it

So that it doesn't need to be done on every sethost.sh.
It's convenient during development.
Also, it can be useful for offline builds.
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 left a comment

Choose a reason for hiding this comment

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

LGTM.

@xiaoxiang781216 xiaoxiang781216 merged commit b1878fe into apache:master Dec 21, 2020
@yamt
Copy link
Contributor Author

yamt commented Dec 22, 2020

The only concern is that "CXXFLAGS += -std=c++14 -D_LIBCPP_STD_VER=14", should we keep the default one from gcc/clang?

ok, let me try to remove it

i remembered why it was necessary.
libcxx needs newer c++ version than the default of my compiler.
do you have a suggestion better than this?

spacetanuki% g++ -dM -E -x c++ /dev/null | grep __cplusplus
#define __cplusplus 199711L
spacetanuki% g++ --version                                 
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
spacetanuki% 

@xiaoxiang781216
Copy link
Contributor

From this link:
https://stackoverflow.com/questions/21581838/set-as-default-c11-in-clang
clang should target c++11 by default from 6.0.0.

@yamt
Copy link
Contributor Author

yamt commented Dec 22, 2020

From this link:
https://stackoverflow.com/questions/21581838/set-as-default-c11-in-clang
clang should target c++11 by default from 6.0.0.

what's your point?

@xiaoxiang781216
Copy link
Contributor

My point is that it's strange why your version still default to c++98.

@yamt
Copy link
Contributor Author

yamt commented Dec 22, 2020

My point is that it's strange why your version still default to c++98.

ok. i agree it's strange. maybe apple is more picky about compatibility than the upstream?

@btashton btashton added this to To-Add in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from To-Add to Minor in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from Minor to board fixes in Release Notes - 10.1.0 Apr 16, 2021
@jerpelea jerpelea moved this from board fixes to Added in Release Notes - 10.1.0 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants