Skip to content

Conversation

@boberfly
Copy link
Contributor

@boberfly boberfly commented Oct 3, 2025

Description

When building Gaffer and running its unit-tests, the OSL batched build of windows couldn't find the .dll's as windows tends to omit the lib prefix from its libraries - this ensures it is applied.

Tests

I'm not too sure on that if batched mode is tested on windows yet?

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format v17 before submitting, I definitely will look at
    the CI test that runs clang-format and fix anything that it highlights as
    being nonconforming.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 3, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: boberfly / name: Alex Fuller (0e5d986)

@boberfly boberfly force-pushed the win_batched_prefix_fix branch from d060e83 to 0e5d986 Compare October 3, 2025 09:53
@lgritz
Copy link
Collaborator

lgritz commented Oct 3, 2025

As a note, that test failure is happening in main, it's not related to your PR. I'm fixing it separately.

@lgritz
Copy link
Collaborator

lgritz commented Oct 3, 2025

@AlexMWells This look ok from your perspective?

@lgritz lgritz requested a review from AlexMWells October 3, 2025 16:29
@lgritz lgritz added build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. windows Problems specific to MS Windows OS labels Oct 3, 2025
Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix

@lgritz lgritz changed the title Ensure 'lib' prefix is on the batched libraries for windows build(windows): Ensure 'lib' prefix is on the dynamicaly loaded batched shading libraries for windows Oct 15, 2025
@lgritz lgritz merged commit 9da2d79 into AcademySoftwareFoundation:main Oct 15, 2025
25 of 26 checks passed
lgritz pushed a commit to lgritz/OpenShadingLanguage that referenced this pull request Oct 25, 2025
…ed shading libraries for windows (AcademySoftwareFoundation#2025)

When the ISA-specific dll is loaded dynamically by the batched shading system,
it was expecting the lib prefix to be there. 

Signed-off-by: Alex Fuller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. windows Problems specific to MS Windows OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants