This is an archive of the discontinued LLVM Phabricator instance.

[lld] Add generic helloworld test program
AbandonedPublic

Authored by XiaodongLoong on Mar 18 2022, 6:55 AM.

Details

Summary

The hello world test program is usually a milestone during a
certain feature development. So I add this test program.

Diff Detail

Event Timeline

XiaodongLoong created this revision.Mar 18 2022, 6:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2022, 6:55 AM
Herald added a subscriber: emaste. · View Herald Transcript
XiaodongLoong requested review of this revision.Mar 18 2022, 6:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2022, 6:55 AM
MaskRay requested changes to this revision.EditedMar 22 2022, 2:47 PM

Due to layering, lld/test tests cannot use clang. lld can be added to LLVM_ENABLE_PROJECTS without clang. In addition, lld/ don't use runtime tests for best portability across platforms.

Actually, we already have some coverage for the runtime tests. Grep fuse-ld=lld in compiler-rt. Many build bots even use lld by default.

Please abandon the change.

This revision now requires changes to proceed.Mar 22 2022, 2:47 PM

@XiaodongLoong You may be interested in the toolchain integration test suite which has multi-project tests like this.

XiaodongLoong abandoned this revision.Mar 22 2022, 10:59 PM

@XiaodongLoong You may be interested in the toolchain integration test suite which has multi-project tests like this.

@tstellar Thanks! I will learn it.