Require --platform only when compiling