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:
parent
1e7b1ec86f
commit
d7714eeca7
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue