This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][cmake] Attempt to fix build race condition
Needs ReviewPublic

Authored by msearles on Sep 10 2020, 4:57 PM.

Details

Reviewers
ro
eugenis
Summary
Fix for https://bugs.llvm.org/show_bug.cgi?id=26054

There was code which purported to work around a bug in cmake version
2. This involved creating a dummy.cpp file which had dependencies on
the '.vers' script.

Now that cmake version 3.13.4 is the minimum version of cmake this
work-around is removed and a straight forward dependency on the PHONY
target clang_rt.asan-dynamic-${arch}-version-list is introduced.

This appears to work with both GNUmake and ninja as targets.

Diff Detail

Event Timeline

msearles created this revision.Sep 10 2020, 4:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2020, 4:57 PM
Herald added subscribers: Restricted Project, mgorny, dberris. · View Herald Transcript
msearles requested review of this revision.Sep 10 2020, 4:57 PM