aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2023-12-08 09:43:42 -0500
committerLouis Dionne <ldionne.2@gmail.com>2023-12-08 09:43:42 -0500
commit8908296b62ee8ec1fc4db87b67dcefc2873111bd (patch)
treea66741cc0b8da8ec2efa7478a00e9e76e176fbc0
parentbdb5b4421593d61c454abf3148aabcd4c2ff7811 (diff)
downloadllvm-8908296b62ee8ec1fc4db87b67dcefc2873111bd.zip
llvm-8908296b62ee8ec1fc4db87b67dcefc2873111bd.tar.gz
llvm-8908296b62ee8ec1fc4db87b67dcefc2873111bd.tar.bz2
[libc++][NFC] Move 32-bit pointer Lit feature check where it belongs
It was previously defined in the block where we defined back-deployment features.
-rw-r--r--libcxx/utils/libcxx/test/features.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py
index ccabb48..5e85491 100644
--- a/libcxx/utils/libcxx/test/features.py
+++ b/libcxx/utils/libcxx/test/features.py
@@ -198,6 +198,18 @@ DEFAULT_FEATURES = [
""",
),
),
+ # Tests that require 64-bit architecture
+ Feature(
+ name="32-bit-pointer",
+ when=lambda cfg: sourceBuilds(
+ cfg,
+ """
+ int main(int, char**) {
+ static_assert(sizeof(void *) == 4);
+ }
+ """,
+ ),
+ ),
# TODO: Remove this feature once compiler-rt includes __atomic_is_lockfree()
# on all supported platforms.
Feature(
@@ -567,16 +579,4 @@ DEFAULT_FEATURES += [
cfg.available_features,
),
),
- # Tests that require 64-bit architecture
- Feature(
- name="32-bit-pointer",
- when=lambda cfg: sourceBuilds(
- cfg,
- """
- int main(int, char**) {
- static_assert(sizeof(void *) == 4);
- }
- """,
- ),
- ),
]