-
-
Notifications
You must be signed in to change notification settings - Fork 24
Makefile improvements: compiler paths and version-aware flags #139
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
Conversation
|
This pull request has been mentioned on preCICE Forum on Discourse. There might be relevant details there: https://precice.discourse.group/t/simulation-is-stuck-during-setup-calculix-adapter/2423/1 |
|
@abzrg apologies for not looking into this PR sooner. We recently removed yaml-cpp as a dependency. Can you please update your feature branch with respect to the develop branch? I will then review it. |
Also removed `-lstdc++` from `LIBS`
`clang` causes compilation errors if these flags are not enabled: `CFLAGS += -Wno-implicit-function-declaration` Suppresses warnings about using functions without declaring them first `CFLAGS += -Wno-incompatible-pointer-types` Suppresses warnings when assigning or passing pointers between incompatible types (e.g., assigning a char ** to a void **)
- `$(INCLUDES)` is already included in `$(CFLAGS)` - `$(LIBS)` only generate linker warnings
Specifically `-std=c++11` required by yaml-cpp 0.6.0+ (https://github.com/jbeder/yaml-cpp/wiki/Breaking-Changes#060)
d0533a1 to
36149f9
Compare
|
Thank you @IshaanDesai for letting me know. I rebased my changes on the latest changes of |
86ec606 to
1a58657
Compare
MakisH
left a comment
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.
Thank you for the update! This is a very useful contribution, independent of the original reason (yaml-cpp was removed in #143).
I like the version-aware -fallow-argument-mismatch, which saves the whole hard-coding. We should also update the documentation and the respective CI scripts to remove that (I will do).
Hi,
This is a PR based on this discussion. The main goal is to update
:/Makefileso that the adapter can be built on macOS as well.In short, the adaptor couldn't link against
yaml-cpp, because the compilation was done usinggcc,g++and-lstdc++. Changing these toclang,clang++, and-lc++fixed that.Other compilation issues encountered included: