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

[Legacy-Flang][Driver][ASan] Add default rpath of host-asan #81

Open
wants to merge 1 commit into
base: aomp-dev
Choose a base branch
from

Conversation

ampandey-AMD
Copy link

library(libclang_rt.asan.x86_64.so)) for OpenMP Offloading applications when ASan.

Copy link
Contributor

@ronlieb ronlieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, want @estewart08 to be final approver

@estewart08
Copy link
Contributor

Cannot just always add --disable-new-dtags as ROCm uses RUNPATH. We need this for AOMP only as we use RPATH.

@estewart08
Copy link
Contributor

Add a condition to check if the Args do not contain --enable-new-dtags, then we can add --disable-new-dtags. ROCm uses a config file to force --enable-new-dtags by default so it will be present. This also brings up the question if AOMP can just use a config file as well.

library(libclang_rt.asan.x86_64.so)) for OpenMP Offloading applications
when ASan.
@ampandey-AMD
Copy link
Author

Cannot just always add --disable-new-dtags as ROCm uses RUNPATH. We need this for AOMP only as we use RPATH.

Done.

@@ -568,8 +568,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
// Add Fortran runtime libraries
if (needFortranLibs(D, Args)) {
ToolChain.AddFortranStdlibLibArgs(Args, CmdArgs);
CmdArgs.push_back("-rpath");
Copy link
Contributor

@estewart08 estewart08 Apr 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need guarded with ! needsAsanRt?

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

Successfully merging this pull request may close these issues.

4 participants