[pve-devel] [PATCH qemu-server] query-machine-capabilities: make it work on non-x86 arch

Lukas Wagner l.wagner at proxmox.com
Fri Nov 22 10:43:56 CET 2024


Hello,

instead of modifying the CFLAGS variable in the makefile, you could make use of
one of GCC's built-in defines [1] to check for the machine's architecture.
For instance, you could do a `#if __x86_64__` or `#if __amd64__`.

[1] https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html

-- 
- Lukas




More information about the pve-devel mailing list