-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix -std=c++11 #16237
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
Fix -std=c++11 #16237
Conversation
…//github.com/duckdb/duckdb/blob/main/tools/pythonpkg/setup.py#L162 and L165, but then reset again at https://github.com/duckdb/duckdb/blob/main/tools/pythonpkg/setup.py#L176 but incorrectly for all compilers.
Thanks! |
The title is "fix", if this was called "remove" I would have looked at it, because this isn't fixing I'll try to find a solution that fixes this for all platforms |
This doesn't sound like it's possible to reliably detect reading through some related work on the topic of detecting MSVC |
Can we just use |
Do we care about differentiating between MinGW and MSVC? Because that check does not differentiate |
I don't think we do |
Sorry, didn't mean to break a build! Why wouldn't the c++11 flag be set a few line above in the code though? You likely do want to distinguish between msvc and mingw because the compiler flags are different. It is easy to tell from CMAKE, _WIN32 will be set as well as GCC (or _MSC_VER will or won't be set). Maybe that could be passed in to the python code? |
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
Issue duckdb/duckdb#8265: AsOf Nested Loop (duckdb/duckdb#16218) Fix -std=c++11 (duckdb/duckdb#16237) Fix Python 3 executable name on Windows (duckdb/duckdb#16236) Use _win32 with MSVC (duckdb/duckdb#16235) Do In-Filter pushdown in PyArrow (duckdb/duckdb#16224)
is invalid with MSVC. It it is set correctly here - https://github.com/duckdb/duckdb/blob/main/tools/pythonpkg/setup.py#L162 and L165, but then reset again at https://github.com/duckdb/duckdb/blob/main/tools/pythonpkg/setup.py#L176 but incorrectly for all compilers.