Skip to content

[Clang] - Add libclangSerialization to clang driver unittests #109329

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

Conversation

bhandarkar-pranav
Copy link
Contributor

@bhandarkar-pranav bhandarkar-pranav commented Sep 19, 2024

This PR is a fix for issue #109328. libclangSerializaton.so is needed for building clang driver unittests after
#76838 was merged. Needed for builds with BUILD_SHARED_LIBS=ON

This PR is a fix for issue llvm#109328. libclangSerializaton.so is
needed for building clang driver unittests after
llvm#76838 was merged.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Sep 19, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 19, 2024

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-driver

Author: Pranav Bhandarkar (bhandarkar-pranav)

Changes

This PR is a fix for issue #109328. libclangSerializaton.so is needed for building clang driver unittests after
#76838 was merged.


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

1 Files Affected:

  • (modified) clang/unittests/Driver/CMakeLists.txt (+1)
diff --git a/clang/unittests/Driver/CMakeLists.txt b/clang/unittests/Driver/CMakeLists.txt
index 752037f78fb147..efdd07ea238890 100644
--- a/clang/unittests/Driver/CMakeLists.txt
+++ b/clang/unittests/Driver/CMakeLists.txt
@@ -22,4 +22,5 @@ clang_target_link_libraries(ClangDriverTests
   clangDriver
   clangBasic
   clangFrontend # For TextDiagnosticPrinter.
+  clangSerialization
   )

@bhandarkar-pranav bhandarkar-pranav merged commit 221f15f into llvm:main Sep 19, 2024
11 checks passed
@Prabhuk
Copy link
Contributor

Prabhuk commented Sep 19, 2024

Thank you Pranav! This looks like a reasonable fix to me. I just created a revert PR though since I cannot test this right away locally.

@Prabhuk
Copy link
Contributor

Prabhuk commented Sep 19, 2024

I am holding off of on my revert PR to see if the current build bot with this patch goes through successfully! Thanks again Pranav.

@Prabhuk
Copy link
Contributor

Prabhuk commented Sep 19, 2024

It seems like we are still seeing failures: https://lab.llvm.org/buildbot/#/builders/190/builds/6112

@Prabhuk
Copy link
Contributor

Prabhuk commented Sep 19, 2024

I just merged my revert PR #109340
I'll investigate further on the cause for the warning that shows up in the build bots causing the test failure

@bhandarkar-pranav
Copy link
Contributor Author

I just merged my revert PR #109340 I'll investigate further on the cause for the warning that shows up in the build bots causing the test failure

Sounds good. As you can see, my fix is unrelated to this issue that you are seeing which seems to be real issue worth investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants