Conversation
Added function to cml_unit_sim.mk so that the -Wno-nonnull-compare only gets added to TRICK_C/XXFLAGS in a Linux environment as the compile flag is not compatible with Clang Fixed overloading and fpe compile errors for SIM_Test_table. Using SIM_Test_table as the test case to get Mac working with CML. Currently seeing SWIG error where SWIG is attempting to access private things within a class. Refs #16
…D=1 on Mac Also includes #ifdef SWIG fix for swig attempting to access private class information Refs #16
|
This is a few commits behind so go ahead and rebase or merge main into this branch first. |
Branch works on Linux as well. Refs #16
| TRICK_LDFLAGS += -L${CML_LIBRARY_DIR} | ||
| ifeq (1, $(CML_USE_STATIC_LIB)) | ||
| TRICK_LDFLAGS += -l:libcml.a | ||
| else ifeq ($(findstring Darwin,$(trick-gte TRICK_HOST_CPU)),) |
There was a problem hiding this comment.
Could probably just make this a direct comparison with Darwin using trick-gte TRICK_HOST_TYPE instead.
There was a problem hiding this comment.
Need to keep it as it is because trick-gte TRICK_HOST_CPU returns Darwin_25 on my Mac. I don't know if Darwin_* will change for different Mac versions in the future. Or we can specify Darwin_25 for now.
| #ifdef SWIG | ||
| %immutable; | ||
| #endif |
There was a problem hiding this comment.
I added these in the Rocky 9 compatibility branch which was just merged. Go ahead and revert the ones on this branch and see if the ones I added are enough to get builds on mac working.
| ifeq ($(shell pkg-config --exists libxml-2.0 && echo $$?),0) | ||
| export TRICKIFY_CXX_FLAGS += $(shell pkg-config libxml-2.0 --cflags) | ||
| endif |
There was a problem hiding this comment.
This is probably going to cause the Rocky build to fail because it won't be able to find libxml types that the headers need.
- removed lines that got unit sims compile with the overloaded-virtual compiler flag error - a quick check to only use GCC specific compiler warnings if a user is compiling with GCC - removing a check to see if Trick exists from the test script Other issues to potentially be fixed with a merge with main Refs #16
No description provided.