r/AskComputerScience • u/Successful_Box_1007 • Nov 18 '25
Can somebody help me understand how a dev can trust building an app in a virtual machine that is only emulating hardware but not a true representative of it ? (I thought about it an even if the VM is the same as the native architecture they want to run on, how can they trust this VM)?
Can somebody help me understand how a dev can trust building an app in a virtual machine that is only emulating hardware but not a true representative of it ? (I thought about it an even if the VM is the same as the native architecture they want to run on, how can they trust this VM)?
0
Upvotes
View all comments
Show parent comment
3
u/high_throughput Nov 18 '25
If you use a traditional build that uses the host system to determine capabilities (
./configure), then this is indeed an issue.You risk including dependencies on A. CPU features (e.g. AVX512) that the target system does not support, and B. on libraries that the target system does not have (e.g.
/usr/lib64/libpng16.so).However, this applies equally to virtual machines and physical machines.
Building on someone else's physical machine has the same problems as building on a VM, and you have to (more or less) carefully set up the build to ensure suitably wide compatibility.