This is an archive of the discontinued LLVM Phabricator instance.

[lit] Expose clang search_env string as a use_clang argument
AbandonedPublic

Authored by Amir on Jan 16 2022, 6:03 PM.

Details

Summary

Add an ability to provide a custom environment variable for clang,
to be used in BOLT tests (D117446)

Diff Detail

Event Timeline

Amir created this revision.Jan 16 2022, 6:03 PM
Amir requested review of this revision.Jan 16 2022, 6:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2022, 6:03 PM
Amir updated this revision to Diff 400413.Jan 16 2022, 6:04 PM

Remove BOLT changes

Amir edited the summary of this revision. (Show Details)Jan 16 2022, 6:10 PM
thopre added a comment.EditedJan 17 2022, 2:21 AM

What's the reason for not using CLANG instead of BOLT_CLANG_EXE?

Amir added a comment.Jan 17 2022, 12:23 PM

What's the reason for not using CLANG instead of BOLT_CLANG_EXE?

I'm a bit worried about an interference with other project tests (ie when bolt and clang are enabled and tests for both are invoked). But I agree it's unlikely to be an issue in practice.

What's the reason for not using CLANG instead of BOLT_CLANG_EXE?

I'm a bit worried about an interference with other project tests (ie when bolt and clang are enabled and tests for both are invoked). But I agree it's unlikely to be an issue in practice.

That's precisely what I cannot understand: why would you want the two projects to use a different clang? Sorry if the answer is obvious, I'm not familiar with bolt.

Amir abandoned this revision.Jan 17 2022, 11:18 PM

What's the reason for not using CLANG instead of BOLT_CLANG_EXE?

I'm a bit worried about an interference with other project tests (ie when bolt and clang are enabled and tests for both are invoked). But I agree it's unlikely to be an issue in practice.

That's precisely what I cannot understand: why would you want the two projects to use a different clang? Sorry if the answer is obvious, I'm not familiar with bolt.

Yes, indeed, setting the CLANG env variable is sufficient. Thank you again for asking the right question!