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

Fix Windows link error #92

Merged
merged 1 commit into from
Apr 13, 2018
Merged

Fix Windows link error #92

merged 1 commit into from
Apr 13, 2018

Conversation

garrettr
Copy link
Contributor

Fixes brave/brave-browser#146.

It's unclear to me why this linker error should only appear on Windows, and not macOS or Linux. I noticed that the static_library target that contains the missing password_manager::LoginDatabase symbols is split into multiple static libraries on Windows builds, but I am not sure if that is the cause.

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.

Test Plan:

On Windows:

  1. Checkout this branch in your brave-core subrepo (e.g. brave/src/brave)
  2. yarn build in your brave-browser repo

The build should complete successfully.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions

May be required to link LoginDatabase, included from
components/password_manager/core/browser/login_database.h.
@bridiver
Copy link
Collaborator

@garrettr it's not uncommon to have linking issue that appear on windows, but not other platforms. Sometimes it's because of defined(OS_WIN) guards, but more often it seems that the windows compiler just sucks at dead code elimination

Copy link
Member

@simonhong simonhong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM

@garrettr
Copy link
Contributor Author

Thanks, @bridiver, that's good to know. In any case I'll be sure to test future PR's across all platforms to avoid this kind of issue.

@garrettr garrettr merged commit d245ecf into master Apr 13, 2018
@garrettr garrettr deleted the fix-windows-link-error branch April 13, 2018 15:13
@bridiver
Copy link
Collaborator

@garrettr also after looking at the files in this target, you should be adding deps for any include that you use. chrome_importer.cc should have net, autofill, base, prefs, etc...

NejcZdovc pushed a commit that referenced this pull request Dec 10, 2018
Adding method for publisher exclusion
bbondy pushed a commit that referenced this pull request Feb 18, 2019
Update sinon dependency to 7.2.3
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.

4 participants