MSYS build scripts and instructions#99
Conversation
|
Thanks @Stinkfist0. |
|
Closes #98 also |
| find_package(Threads) | ||
| if (NOT APPLE) | ||
| set(LIB_RT "rt") | ||
| # TODO why OPENCASCADE_LIBRARIES is repeated three times below? |
There was a problem hiding this comment.
This is to resolve cyclic dependencies in gcc/ld. Better way seems to use --start-group ... --end-group, but didn't want to spend effort on it.
|
This is great thanks. Are there more commits pending? Don't really have the opportunity to test the changes, but they all look perfectly reasonable and since the bulk comprises build script additions, I am fine with merging as is. |
|
I'm having missing symbols errors for IfcPython build (Python is found successfully though - any tips?), but other than that this should be good to go. |
|
Most of the warnings have gone when compiling in gcc. As @Stinkfist0 already pointed out there are some warnings re Python plus a few others singled out below here.
|
|
Yeah couple warnings left, I could maybe take a look of them now. E: or not... Trying these build scripts now using a clean MSYS2 installation at the office and OCE build fails at the very end: |
…set and not used for anything ever
…tructs. Also prevent passing of negative values for --bounds.
|
Only GCC warning left (with the current warning level) should be |
|
Cool. Thank you @Stinkfist0. I recompiled it with gcc and I can confirm the only warning left is the one thrown by IfcGeomServer.cpp.
Thumbs up from me if you want to merge it @aothms. |
|
Wonderful. I am still travelling, no time to check in detail, but looks good to me. Many many thanks. |
| message(STATUS "ENABLE_BUILD_OPTIMIZATIONS not implemented for GCC/non-MSVC compilers.)") | ||
| # GCC-like: Release should use O3 but RelWithDebInfo 02 so enforce 03. Anything other useful that could be added here? | ||
| set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") | ||
| set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} -O3") |
There was a problem hiding this comment.
Could also experiment with -flto and -fwhole-program here.
Opening up for an initial review; a commit or two probably pending.