Skip to content
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

Fortran wrapper #25

Open
jprotze opened this issue Mar 13, 2017 · 2 comments
Open

Fortran wrapper #25

jprotze opened this issue Mar 13, 2017 · 2 comments

Comments

@jprotze
Copy link
Contributor

jprotze commented Mar 13, 2017

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.

@dongahn
Copy link
Contributor

dongahn commented Mar 13, 2017

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.

@simoatze
Copy link
Member

simoatze commented Mar 13, 2017

@jprotze Maybe we can just create a new wrapper for Fortran and call it flang-archer or something like that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants