mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-08 09:46:55 +00:00
build: share cached objects between build directories and worktrees (#15573)
This commit is contained in:
@@ -360,6 +360,12 @@ $cases = @(
|
||||
@{ Name = '--cache turns the precompiled header off'; Args = @('-s', '-l', '-x', '--cache', 'ccache')
|
||||
Env = @{ PATH = $ccacheOnPath }
|
||||
Contains = @('-DSLIC3R_PCH=OFF', 'COMPILER_LAUNCHER') }
|
||||
# Without it the objects name the build directory and only that tree can use them.
|
||||
@{ Name = '--cache asks for relative debug paths'; Args = @('-s', '-l', '-x', '--cache', 'ccache')
|
||||
Env = @{ PATH = $ccacheOnPath }
|
||||
Contains = @('-DSLIC3R_RELATIVE_DEBUG_PATHS=ON') }
|
||||
@{ Name = 'no --cache leaves the debug paths alone'; Args = @('-s', '-l', '-x')
|
||||
NotContains = @('SLIC3R_RELATIVE_DEBUG_PATHS') }
|
||||
# The resolved path, not the bare name, so PATH cannot change it later.
|
||||
@{ Name = '--cache names the resolved path in the banner'; Args = @('-s', '-l', '-x', '--cache', 'ccache')
|
||||
Env = @{ PATH = $ccacheOnPath }
|
||||
|
||||
Reference in New Issue
Block a user