Skip to content

[libc][arm] move setjmp+longjmp to fullbuild-only entrypoints #96708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

nickdesaulniers
Copy link
Member

The opaque type jmp_buf should only be tested in fullbuild mode.

The opaque type jmp_buf should only be tested in fullbuild mode.
@llvmbot
Copy link
Member

llvmbot commented Jun 25, 2024

@llvm/pr-subscribers-libc

Author: Nick Desaulniers (paternity leave) (nickdesaulniers)

Changes

The opaque type jmp_buf should only be tested in fullbuild mode.


Full diff: https://github.com/llvm/llvm-project/pull/96708.diff

1 Files Affected:

  • (modified) libc/config/linux/arm/entrypoints.txt (+8-4)
diff --git a/libc/config/linux/arm/entrypoints.txt b/libc/config/linux/arm/entrypoints.txt
index 53cdcc3caab1c..85cd5dee84b08 100644
--- a/libc/config/linux/arm/entrypoints.txt
+++ b/libc/config/linux/arm/entrypoints.txt
@@ -20,10 +20,6 @@ set(TARGET_LIBC_ENTRYPOINTS
     # errno.h entrypoints
     libc.src.errno.errno
 
-    # setjmp.h entrypoints
-    libc.src.setjmp.longjmp
-    libc.src.setjmp.setjmp
-
     # string.h entrypoints
     libc.src.string.bcmp
     libc.src.string.bcopy
@@ -185,6 +181,14 @@ set(TARGET_LIBC_ENTRYPOINTS
 
 )
 
+if(LLVM_LIBC_FULL_BUILD)
+  list(APPEND TARGET_LIBC_ENTRYPOINTS
+    # setjmp.h entrypoints
+    libc.src.setjmp.longjmp
+    libc.src.setjmp.setjmp
+  )
+endif()
+
 set(TARGET_LIBM_ENTRYPOINTS
     # fenv.h entrypoints
     libc.src.fenv.feclearexcept

@nickdesaulniers nickdesaulniers changed the title [libc] move setjmp+longjmp to fullbuild-only entrypoints [libc][arm] move setjmp+longjmp to fullbuild-only entrypoints Jun 25, 2024
@nickdesaulniers nickdesaulniers merged commit e214ed9 into llvm:main Jun 25, 2024
6 of 7 checks passed
@nickdesaulniers nickdesaulniers deleted the setjmp_arm branch June 25, 2024 22:35
AlexisPerry pushed a commit to llvm-project-tlp/llvm-project that referenced this pull request Jul 9, 2024
…6708)

The opaque type jmp_buf should only be tested in fullbuild mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants