aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-26 11:36:41 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-26 11:32:06 +0000
commit7de7a5ecf43a5c41b5170d0cb70cb744fdf9de9f (patch)
tree56ad68cab4305fe256e4cb4ad3133018a14176f1 /executor/test_linux.h
parent6cf3ac235c99d92976346acbdc153d68fbb2c841 (diff)
pkg/compiler: allow manual consts to override auto-extracted consts
Currently if const values in 2 .const files have different value, the compiler produces an error. This is problematic for auto-extacted consts since we extract them for only 1 arch now. So if a const has different values for different arches, auto-extacted consts may not reflect that, and we can get a mismatch with manual descriptions that has correct values for all arches. So if both manual and auto-extacted consts have different values, silently prefer the manual ones. I've tried to do some whitelisting of consts during auto-extaction, but the list is large and changing over time. This solution is not perfect since the manual descriptions may have a bug, and the mismatch is actually pointing to that bug. Maybe in future we could extract for all arches separately, or do something else. But let's do this for now.
Diffstat (limited to 'executor/test_linux.h')
0 files changed, 0 insertions, 0 deletions