swift
[SE-0513] Add a `CommandLine.executablePath` property.
#85496
Open

[SE-0513] Add a `CommandLine.executablePath` property. #85496

grynspan wants to merge 54 commits into main from jgrynspan/executablePath
grynspan
grynspan Add an experimental `CommandLine.executablePath` property.
a938b592
grynspan grynspan requested a review from natecook1000 natecook1000 192 days ago
grynspan grynspan assigned grynspan grynspan 192 days ago
grynspan grynspan added standard library
grynspan grynspan added swift evolution proposal needed
grynspan grynspan added needs tests
grynspan malloc casts
3415f204
grynspan Fix typo
dd077570
grynspan Fix another typo
06001445
grynspan
grynspan Mark helper calls unsafe
93203822
grynspan Mark availability (at least until I sort out back-deployment)
9063920a
grynspan Merge branch 'main' into jgrynspan/executablePath
3e972181
grynspan ABI test
ddfcc956
grynspan Back-deploy on Darwin (if possible?)
725f3a84
grynspan Int
29201044
grynspan Fix OpenBSD
882550af
grynspan Extra include
0124287c
grynspan
grynspan Fix unbalanced squigglies
65eee8c6
grynspan
grynspan
grynspan Fix Linux bounds check
f3f2043b
grynspan
natecook1000
natecook1000 commented on 2025-11-14
grynspan Fix bugs
ed300126
grynspan
grynspan grynspan requested a review from natecook1000 natecook1000 191 days ago
grynspan Merge branch 'main' into jgrynspan/executablePath
dd7524b5
grynspan Fix Darwin typos
7cb77e04
grynspan
grynspan Fix inferred return type
4d445716
grynspan
3405691582
3405691582 commented on 2025-11-17
3405691582
3405691582 commented on 2025-11-17
grynspan Don't use a stored property on Darwin so that we can AEIC (doesn't lo…
bbfb61ee
grynspan
grynspan OpenBSD fixes
72f9fcb9
grynspan
grynspan Fix typos
431d2d85
grynspan
grynspan grynspan requested a review from 3405691582 3405691582 188 days ago
3405691582
3405691582 approved these changes on 2025-11-18
grynspan
grynspan
grynspan Merge branch 'main' into jgrynspan/executablePath
e7cf5eba
grynspan Shouldn't need this availability annotation because AEIC
153f7369
grynspan
grynspan Different symbol added
0d4e23b7
grynspan
grynspan Cover _NSGetExecutablePath in tests
6fb0460e
grynspan
grynspan Merge branch 'main' into jgrynspan/executablePath
d825b556
grynspan
KeithBauerANZ
KeithBauerANZ commented on 2026-01-14
grynspan Make the property optional and return nil on failure instead of aborting
01f69926
grynspan grynspan removed swift evolution proposal needed
grynspan
KeithBauerANZ
KeithBauerANZ commented on 2026-01-14
grynspan Incorporate feedback and fix build issues
71bc3180
grynspan Conditionalize the result on OpenBSD based on a stat() call
0ed6e734
grynspan
grynspan
grynspan
grynspan commented on 2026-01-15
grynspan
grynspan commented on 2026-01-15
grynspan
grynspan commented on 2026-01-15
grynspan grynspan requested a review from 3405691582 3405691582 130 days ago
grynspan grynspan requested a review from KeithBauerANZ KeithBauerANZ 130 days ago
grynspan Fix build issues
57999961
grynspan
grynspan Fixes
fdc1bd82
grynspan
grynspan Use std::basic_string with swift::cxx_allocator instead of messing wi…
07bdca18
grynspan Fix optional
cc3f5e88
grynspan
grynspan You're killing me here, C++
0f471d4e
grynspan
grynspan Missing unsafe keyword
f1b73d24
grynspan
grynspan Fix ABI test
7c3d0ddd
grynspan
3405691582
3405691582 commented on 2026-01-16
grynspan Missing stat.h
5dc6b80a
grynspan Merge branch 'main' into jgrynspan/executablePath
210067d5
grynspan
grynspan Merge branch 'main' into jgrynspan/executablePath
3bd462ae
grynspan
grynspan
grynspan
grynspan Cache result on Darwin on newer OSes
8226d221
grynspan
grynspan
grynspan Revert "Cache result on Darwin on newer OSes"
ec9f44f0
grynspan
grynspan Avoid extra C string allocation/copy
96089a9d
grynspan
grynspan Typo
64b7a383
grynspan
grynspan Fix typo
91e9208d
grynspan
grynspan
grynspan commented on 2026-01-18
grynspan No need to call `strchr()`
982036fb
grynspan
grynspan Put the CC in the right place
02725c45
grynspan
grynspan Fix typos on Windows
34281679
grynspan
grynspan Handle empty string case correctly
0a302f81
grynspan grynspan changed the title Add an experimental `CommandLine.executablePath` property. [ST-NNNN] Add a `CommandLine.executablePath` property. 125 days ago
grynspan grynspan changed the title [ST-NNNN] Add a `CommandLine.executablePath` property. [SE-NNNN] Add a `CommandLine.executablePath` property. 125 days ago
grynspan
grynspan
grynspan `unsafe` everywhere
83c48350
grynspan
grynspan grynspan marked this pull request as ready for review 122 days ago
grynspan grynspan requested a review 122 days ago
grynspan Merge branch 'main' into jgrynspan/executablePath
6951ac4a
grynspan
grynspan grynspan changed the title [SE-NNNN] Add a `CommandLine.executablePath` property. [SE-0513] Add a `CommandLine.executablePath` property. 95 days ago
grynspan `context` arg to shim function is not itself `SWIFT_CONTEXT`
3fd94c38
grynspan Merge branch 'main' into jgrynspan/executablePath
43aa27dd
grynspan
grynspan Merge branch 'main' into jgrynspan/executablePath
96bd3ed7
grynspan Make available-but-always-nil on WASI and Embedded; pull in some fixe…
82ef459d
grynspan
grynspan
jakepetroules
jakepetroules commented on 2026-05-19

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone