Build: Fix AMD option for custom builds

Fixes #14859