Skip to content

ACLiC: Use NUL or distinct temporary file on Windows.#21639

Merged
pcanal merged 1 commit intoroot-project:masterfrom
pcanal:aclic-depedency-windows
Mar 19, 2026
Merged

ACLiC: Use NUL or distinct temporary file on Windows.#21639
pcanal merged 1 commit intoroot-project:masterfrom
pcanal:aclic-depedency-windows

Conversation

@pcanal
Copy link
Member

@pcanal pcanal commented Mar 18, 2026

Previously the output of ACLiC dependency generation stage was use the same name (in different directory) in all case on Windows to suppress the output of 'rmkdepend'. This commit changes the behavior by using the null device also on Windows (which fall backs if we can't determine the shell - but the fall back is now using a unique name).:

Determine the null device based on the shell in use.
COMSPEC unset or pointing to cmd.exe -> NUL
COMSPEC pointing to powershell -> $null
Anything else (e.g. bash/sh on Windows) -> depfilename.stderr.tmp

Previously the output of ACLiC dependency generation stage was use the same name (in different directory)
in all case on Windows to suppress the output of 'rmkdepend'.  This commit changes the behavior by using
the null device also on Windows (which fall backs if we can't determine the shell - but the fall back
is now using a unique name).:

Determine the null device based on the shell in use.
   COMSPEC unset or pointing to cmd.exe -> NUL
   COMSPEC pointing to powershell       -> $null
   Anything else (e.g. bash/sh on Windows) -> `depfilename`.stderr.tmp
@pcanal pcanal requested a review from bellenot March 18, 2026 21:36
@pcanal pcanal self-assigned this Mar 18, 2026
@pcanal pcanal requested a review from dpiparo as a code owner March 18, 2026 21:36
@github-actions
Copy link

Test Results

    21 files      21 suites   3d 2h 2m 12s ⏱️
 3 832 tests  3 831 ✅ 1 💤 0 ❌
72 832 runs  72 823 ✅ 9 💤 0 ❌

Results for commit 83a4a91.

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.

Excellent! Thanks Philippe!

@pcanal
Copy link
Member Author

pcanal commented Mar 19, 2026

The ubuntu failure is unrelated (missing package on the CI node)

@pcanal pcanal merged commit ea44aa6 into root-project:master Mar 19, 2026
30 of 33 checks passed
@pcanal pcanal deleted the aclic-depedency-windows branch March 19, 2026 14:53
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.

2 participants