Commit e4c7f91
fix(thorvg): expand response files in compiler flags for meson
ESP-IDF's latest version uses response files (arguments starting with @)
to handle long compiler flag lists. These response file references are
embedded in CMAKE_CXX_FLAGS and CMAKE_EXE_LINKER_FLAGS.
When passed directly to meson's cross-file, these references fail because:
1. The response files may not exist when meson runs
2. Meson cannot access these files from its build context
3. The paths may be invalid from meson's working directory
This commit adds a function to expand response file references before
passing flags to meson. If a response file exists, its contents are
read and expanded inline. If it doesn't exist, it's skipped (assuming
essential flags are provided directly).
Fixes the build failure:
ERROR: Compiler cannot compile programs.
riscv32-esp-elf-g++: error: @"...toolchain/cxxflags": linker input
file not found: No such file or directory
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 5e6e9ee commit e4c7f91
1 file changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
62 | 97 | | |
63 | 98 | | |
64 | 99 | | |
| |||
0 commit comments