Commit b720165
committed
fix: build.sh cross-platform compatibility
- Fix macOS stat command incompatibility in same_dir() function
- Use -f flag for macOS, -c flag for Linux
- Detects platform and uses appropriate stat syntax
- Add automatic uppercase conversion for PC_TARGET
- Allows users to run './build.sh -p coco' instead of requiring uppercase
- Converts target to uppercase before passing to CMake1 parent 31f6107 commit b720165
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
229 | 237 | | |
230 | 238 | | |
231 | 239 | | |
| |||
289 | 297 | | |
290 | 298 | | |
291 | 299 | | |
| 300 | + | |
| 301 | + | |
292 | 302 | | |
293 | 303 | | |
294 | 304 | | |
| |||
0 commit comments