aboutsummaryrefslogtreecommitdiff
path: root/lib/std/target/spirv.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 /lib/std/target/spirv.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 'lib/std/target/spirv.zig')
-rw-r--r--lib/std/target/spirv.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/target/spirv.zig b/lib/std/target/spirv.zig
index 7d2dc7fd6d..84b92a764c 100644
--- a/lib/std/target/spirv.zig
+++ b/lib/std/target/spirv.zig
@@ -294,7 +294,10 @@ pub const Feature = enum {
LongConstantCompositeINTEL,
};
-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: {
@setEvalBranchQuota(2000);