Skip to content

Conversation

@guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Jan 6, 2026

This follows up on 47caba5, also generalizing the function on Windows by dynamically finding libCore.dll (or Core.dll depending on the toolchain).

The goal is to avoid using TROOT::GetRootSys() in the implementation of this method, with the overarching goal of not having to rely on environment variables like ROOTSYS one day, which might not be set in some environments like the Python wheels.

I disclose that ChatGPT was used for this mechanical task of translating code that already existed for macOS and Linux to Windows.

@guitargeek guitargeek self-assigned this Jan 6, 2026
@guitargeek guitargeek requested a review from dpiparo as a code owner January 6, 2026 20:31
@guitargeek guitargeek requested a review from pcanal as a code owner January 6, 2026 20:31
@guitargeek guitargeek force-pushed the getlibdir_windows branch 2 times, most recently from 937a69a to 09d18ef Compare January 6, 2026 21:04
@guitargeek guitargeek changed the title [core] Generalize TROOT::GetLibDir() also on Windows [core] Generalize TROOT::GetShardLibDir() also on Windows Jan 6, 2026
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Test Results

    23 files      23 suites   3d 21h 21m 7s ⏱️
 3 812 tests  3 812 ✅ 0 💤 0 ❌
80 407 runs  80 407 ✅ 0 💤 0 ❌

Results for commit 71eb847.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek force-pushed the getlibdir_windows branch 3 times, most recently from 09dc626 to 1750224 Compare January 14, 2026 14:17
@guitargeek guitargeek requested a review from bellenot as a code owner January 14, 2026 14:17
@guitargeek guitargeek force-pushed the getlibdir_windows branch 2 times, most recently from 71eb847 to 1821a06 Compare January 15, 2026 07:26
This follows up on 47caba5, also generalizing the function on
Windows by dynamically finding `libCore.dll` (or `Core.dll` depending on
the toolchain).

The goal is to avoid using `TROOT::GetRootSys()` in the implementation
of this method, with the overarching goal of not having to rely on
environment variables like `ROOTSYS` one day, which might not be set in
some environments like the Python wheels.

A unit test for `TROOT::GetSharedLibDir()` is also implemented.
Copy link
Member

@bellenot bellenot 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 Jonas!

@guitargeek guitargeek merged commit ff7e631 into root-project:master Jan 15, 2026
29 checks passed
@guitargeek guitargeek deleted the getlibdir_windows branch January 15, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants