Merged
Conversation
HannahShiSFB
commented
Apr 1, 2025
| #include "absl/types/variant.h" | ||
|
|
||
| // Test for duplicate `_main` symbol. | ||
| int main(int argc, char** argv) {} |
Collaborator
Author
There was a problem hiding this comment.
This causes the following error:
% swift test
Building for debugging...
error: link command failed with exit code 1 (use -v to see invocation)
duplicate symbol '_main' in:
/Users/hannahshi/work/abseil-cpp-SwiftPM/.build/arm64-apple-macosx/debug/build_test.build/test.cc.o
/Users/hannahshi/work/abseil-cpp-SwiftPM/.build/arm64-apple-macosx/debug/abseilPackageTests.build/runner.swift.o
ld: 1 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)
paulb777
approved these changes
Apr 19, 2025
Member
paulb777
left a comment
There was a problem hiding this comment.
Thanks. I reenabled the expired CI. LGTM on green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
inc files causing wmodules-import-nested-redundant error, this is an attempt to avoid the issue.
ref: abseil/abseil-cpp#1861
Tested with