0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-04-22 17:45:37 +00:00

[qfcc] Disable VM evaluation for non-ruamoko targets

This is really a bandaid for the problem of ruamoko not being an actual
superset of v6 progs (eg, no float | operation). With this, even ctf
builds.
This commit is contained in:
Bill Currie 2023-09-25 13:51:07 +09:00
parent 1e7b1ec86f
commit d7714eeca7

View file

@ -1709,7 +1709,8 @@ fold_constants (expr_t *e)
if (!e1) {
return e;
}
if (is_math (get_type (e1))) {
if (options.code.progsversion == PROG_VERSION
&& is_math (get_type (e1))) {
return evaluate_constexpr (e);
}
op = e->expr.op;
@ -1726,7 +1727,8 @@ fold_constants (expr_t *e)
return e;
}
if (is_math_val (e1) && is_math_val (e2)) {
if (options.code.progsversion == PROG_VERSION
&& is_math_val (e1) && is_math_val (e2)) {
return evaluate_constexpr (e);
}