See Some builds fail with invalid gcc flag "-Xarch_x86_64" (Linux+CMake+PCH) · Issue #94905 · NixOS/nixpkgs · GitHub