Skip to content

i3166 - #3181

Merged
ehartford merged 1 commit into
i3165from
i3166
Nov 9, 2026
Merged

i3166#3181
ehartford merged 1 commit into
i3165from
i3166

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLI • Give Feedback 💬

… string it was spawned with

posix_run_argv set PWD to the cwd argument after chdir; a relative cwd left
the child with a relative PWD, which runtime_cwd() prefers over getcwd, so
`with get` run through run_to_files_in("out/x", …) rooted its project at
out/x and told CMake to use a relative compiler path (every library of the
#3116 survey failed). The unix spawners now setenv PWD from getcwd after
the chdir (a stack buffer: the forked child allocates nothing); the Windows
spawner resolves the directory with win_realpath before setting it.

Fixture: behav_3166 spawns itself with a relative cwd and checks PWD is
absolute and equal to the child's current directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant