aboutsummaryrefslogtreecommitdiff
path: root/tools/update_cpu_features.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-08-12 10:43:24 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-08-12 10:48:54 -0700
commitfc55814faa8970cc373b7bbf8479c3bc3934fb44 (patch)
tree122369476b5b300a6dd2010f519bf734943c96b0 /tools/update_cpu_features.zig
parent6eecc4af99e2affc44d153e5f127200f2adf4642 (diff)
downloadzig-fc55814faa8970cc373b7bbf8479c3bc3934fb44.tar.gz
zig-fc55814faa8970cc373b7bbf8479c3bc3934fb44.zip
compiler-rt: do not depend on `usingnamespace`
The idea is to depend on this language feature as little as possible with the hopes that it can be adjusted to be less of an anti-pattern. This also helps self-hosted, which does not yet implement `usingnamespace`, get closer to being able to build compiler-rt.
Diffstat (limited to 'tools/update_cpu_features.zig')
-rw-r--r--tools/update_cpu_features.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/update_cpu_features.zig b/tools/update_cpu_features.zig
index bdc82fa22e..e01cd62ed9 100644
--- a/tools/update_cpu_features.zig
+++ b/tools/update_cpu_features.zig
@@ -1066,7 +1066,10 @@ fn processOneTarget(job: Job) anyerror!void {
try w.writeAll(
\\};
\\
- \\pub usingnamespace CpuFeature.feature_set_fns(Feature);
+ \\pub const featureSet = CpuFeature.feature_set_fns(Feature).featureSet;
+ \\pub const featureSetHas = CpuFeature.feature_set_fns(Feature).featureSetHas;
+ \\pub const featureSetHasAny = CpuFeature.feature_set_fns(Feature).featureSetHasAny;
+ \\pub const featureSetHasAll = CpuFeature.feature_set_fns(Feature).featureSetHasAll;
\\
\\pub const all_features = blk: {
\\