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

For future reference: static linking across different platforms #6741

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Commits on Jun 1, 2024

  1. Merge pull request #1 from microsoft/main

    Merge back new DXC version's main
    Nielsbishere authored Jun 1, 2024
    Configuration menu
    Copy the full SHA
    ff9463b View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Configuration menu
    Copy the full SHA
    b63008d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2b408f View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Added CMake flag ENABLE_DXC_STATIC_LINKING to allow dxcompiler to be …

    …linked but only to be used as a dependency rather than CLI. To keep existing functionality, this define has to be set before including dxcapi.h and the library calling has to call DxcInitialize at the start of the program (or at least before calling any DXC function) and DxcShutdown when DXC should be cleaned up correctly. When enabling static linking, the CLI projects are disabled since they assume dynamic linking. DllMain has been modified to deal with this properly as well.
    Nielsbishere committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    d77ae63 View commit details
    Browse the repository at this point in the history
  2. Merged LLVMHLSL into LLVMScalarOpts since they reference eachother. L…

    …et's see if this gets linux to compile
    Nielsbishere committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    b066118 View commit details
    Browse the repository at this point in the history
  3. Combined LLVMipo into ScalarOpt (which already contains LLVMHLSL). Th…

    …ese commits need to be cleaned up at some point because it's very hacky, but it seems to build & link on Linux (execution isn't tested yet). Proper fix is fixing the dependencies, but ain't nobody got time for that.
    Nielsbishere committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    2372117 View commit details
    Browse the repository at this point in the history
  4. Removed clangAnalysis and combined it into clangAST. This should help…

    … prevent recursive issues that's present on linux builds (but only on GitHub CI runners?)
    Nielsbishere committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    f3c5da9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    53660f3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    24bbe07 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6b26c03 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. SPIRV-Tools had an include that wasn't relative, this made it impossi…

    …ble to change the path that pointed to optimizer.hpp
    Nielsbishere committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    3ff5117 View commit details
    Browse the repository at this point in the history