Not finding path for standard library
- Dominant language
- C++
- Stars
- 340
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Executing a command like the following:
```
hyde ./include/psutil/safe_cast.hpp -hyde-src-root=../../include -hyde-yaml-dir=../../docs/include \
-resource-dir=`clang++ --print-resource-dir` -access-filter-protected \
-namespace-blacklist="safe_cast_detail" -hyde-update -- \
-x c++ -std=c++14 -stdlib=libc++
```
Will error out trying to include any file in libc++. The workaround is to explicitly add the path:
```
-I`xcode-select --print-path`/usr/include/c++/v1
```
Contributor guide
Research direction
Start by reproducing the shown hyde command on macOS with -stdlib=libc++ and inspect how the command's resource and include paths are handled. Trace why libc++ headers are not found unless the xcode-select path is supplied manually. Done means the standard library is found without the extra -I workaround, with a regression check if the repository provides a suitable test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100