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

CMakeLists: Yet another iteration on getting dynamic linking right #1903

Merged
merged 1 commit into from Jul 20, 2022

Conversation

nhaehnle
Copy link
Member

This partially reverts commit c38b3be
and replaces it with a more explicit approach.

There are really two key underlying issues:

  • lgc is treated partially as an LLVM component library but isn't linked
    into libLLVM-${version}.so. This is as it should be.
  • llvm_map_components_to_libnames is really designed to be used together
    with the add_llvm_{executable,library} macros which we don't use
    consistently. These take care of choosing between dynamic vs. static
    linking for LLVM. We do this manually for llpc in this change.

This partially reverts commit c38b3be
and replaces it with a more explicit approach.

There are really two key underlying issues:

- lgc is treated partially as an LLVM component library but isn't linked
  into libLLVM-${version}.so. This is as it should be.
- llvm_map_components_to_libnames is really designed to be used together
  with the add_llvm_{executable,library} macros which we don't use
  consistently. These take care of choosing between dynamic vs. static
  linking for LLVM. We do this manually for llpc in this change.
@nhaehnle nhaehnle requested a review from a team as a code owner July 19, 2022 19:05
@github-actions
Copy link

The LLPC code coverage report is available at https://storage.googleapis.com/amdvlk-llpc-github-ci-artifacts-public/coverage_release_clang_coverage_2699968936/index.html.
Configuration: release_clang_coverage.

@github-actions
Copy link

The LLPC code coverage report is available at https://storage.googleapis.com/amdvlk-llpc-github-ci-artifacts-public/coverage_release_clang_shadercache_coverage_assertions_2699968936/index.html.
Configuration: release_clang_shadercache_coverage_assertions.

@amdvlk-admin
Copy link
Collaborator

Test summary for commit fc5d705

CTS tests (Failed: 0/216210)
  • Built with version 1.3.0.0
  • Rhel 8.2, Gfx10
    • Passed: 35449/73547 (48.2%)
    • Failed: 0/73547 (0.0%)
    • Not Supported: 38098/73547 (51.8%)
    • Warnings: 0/73547 (0.0%)
    Ubuntu 18.04, Gfx9
    • Passed: 33142/69116 (48.0%)
    • Failed: 0/69116 (0.0%)
    • Not Supported: 35974/69116 (52.0%)
    • Warnings: 0/69116 (0.0%)
    Ubuntu 20.04, Gfx8
    • Passed: 37710/73547 (51.3%)
    • Failed: 0/73547 (0.0%)
    • Not Supported: 35837/73547 (48.7%)
    • Warnings: 0/73547 (0.0%)

@nhaehnle nhaehnle merged commit 379eeee into GPUOpen-Drivers:dev Jul 20, 2022
@nhaehnle nhaehnle deleted the pub-cmakelists branch July 20, 2022 14:34
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.

None yet

4 participants