archer
archer copied to clipboard
Fortran wrapper
The following commands create a binary, that is instrumented with TSan, has the Clang-TSan, LLVM-openmp and archer runtime library linked:
gfortran -fopenmp -sanitize=thread -c code.f
clang -fopenmp -sanitize=thread -lgfortran -larcher code.o
I'm not sure, how to modify the compiler wrapper, to split the compilation into this two steps.
Have you also tried Frontran code that goes into a static library? -fPIC
on the Fortran code might do but then, this may require libfortran.a
to be built with -fPIC
which isn't the case with default configuration.
@jprotze Maybe we can just create a new wrapper for Fortran and call it flang-archer
or something like that?