Commit 23fae62
committed
fix(run): detect Vix runtime scripts correctly in CMake fallback
- fix script feature detection for `using namespace vix` and related patterns
- make generated fallback CMakeLists use the Vix runtime branch when needed
- ensure Vix runtime scripts link against the umbrella `vix::vix` target
- keep `--local-cache` behavior working for generated script projects
Result:
- `vix run file.cpp` works for Vix runtime scripts
- `vix run file.cpp --local-cache` works too
- generated fallback projects now enter the correct Vix linking path1 parent 07cb8d7 commit 23fae62
3 files changed
Lines changed: 23 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
985 | | - | |
| 985 | + | |
| 986 | + | |
986 | 987 | | |
987 | 988 | | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
991 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
992 | 999 | | |
993 | 1000 | | |
994 | 1001 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
| 1030 | + | |
1034 | 1031 | | |
1035 | 1032 | | |
1036 | 1033 | | |
1037 | 1034 | | |
1038 | 1035 | | |
1039 | 1036 | | |
1040 | 1037 | | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | 1038 | | |
1046 | | - | |
| 1039 | + | |
1047 | 1040 | | |
1048 | 1041 | | |
1049 | 1042 | | |
| |||
1147 | 1140 | | |
1148 | 1141 | | |
1149 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
1150 | 1145 | | |
1151 | 1146 | | |
1152 | 1147 | | |
| |||
1169 | 1164 | | |
1170 | 1165 | | |
1171 | 1166 | | |
1172 | | - | |
| 1167 | + | |
1173 | 1168 | | |
1174 | 1169 | | |
1175 | 1170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
349 | 357 | | |
| 358 | + | |
350 | 359 | | |
351 | 360 | | |
352 | 361 | | |
| |||
0 commit comments