Skip to content
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

Remove duplicated strings from link command #926

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jperedadnr
Copy link
Contributor

Issue

Fixes #924

Progress

@@ -108,4 +112,46 @@ public static String randomString(int targetStringLength) {
.toString();
}

/**
* Removes duplicated strings from a sourceList list, keeping the items with higher index
* in the list. Any item in the keep list will not be removed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is not guaranteed to be the correct approach. If an entry appear twice, there are a number of possible scenario's. Both may be needed, first may be needed, last may be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a keep list for strings that might be duplicated and needed.
So far the case I found is the whole/no-whole combination.
I've tested this PR in all possible platforms, and there was no issue removing the rest of the duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated libraries in link command
2 participants