FortranCInterface: Detection with ASAN
When I add the Clang ASAN flags to the CXX flags, I also need to add them to the linker flags. However, FortranCInterface does not respect these, and it fails to verify the interface due to the resultant link error (because it DOES respect the CXX flags). I've attached a replicator for the issue.
cmake -DCMAKE_C_FLAGS="-g -O1 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_CXX_FLAGS="-g -O1 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_EXE_LINKER_FLAGS="-g -O1 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc .
Edited by Brad King