-
Notifications
You must be signed in to change notification settings - Fork 473
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
Compile lua by C++ compilers to avoid memory leaks #614
Conversation
There are some weird problem in the default xcode toolchains (i.e. apple clang):
So I try to use |
This comment was marked as outdated.
This comment was marked as outdated.
@PragmaTwice Seems ${CMAKE_CXX_COMPILER} will use the apple-clang and $CXX will use clang++, clang++ works good after updating the Lua. So we can replace |
I think the concern here is that we'd better to keep the same c++ compiler during the whole build process. So I pass the c++ compiler specified by cmake to make. |
I got your point, but it will fail to build if we didn’t specify them explicitly. I’m not sure if it’s ok to other users. |
It is a common usage to specify |
done 🎉 |
cool, thanks to @PragmaTwice great work! |
@PragmaTwice as RocksLabs/lua#3 merged, is it still necessary to introduce such workaround? IIUC now it should be happy to build with |
Sorry for many time to solve it, I do not have an Mac osx device so I use github actions in a temp repo to debug the build process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thanks for your contribution.
Thanks for @PragmaTwice great investigation and contribution again. 👍 |
The clause
by C++ compilers
just meansin C++ mode
since most mainstream C compilers are also a C++ compiler. 😆Close #609.