This reverts commit 547481c31c. There is a comment that did not get addressed with this patch, and the required test cases are not added. Reopens #17798.
547481c31c
std.Target.current
@import("builtin").target