Getting system config option and using it as a compiler '-D' option #14613
-
I want to add a Is there a way to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
bonzini
May 17, 2025
Replies: 1 comment 2 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bonzini
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
run_command
to execute getconf. Though the cache line size is a run-time parameter, so the code may not be optimal on other processors than the one you compiled on.