see also
- https://discourse.cmake.org/t/cmake-generating-invalid-ninja-build-rules-for-asm/1389
- https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4460
- https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4838
Signed-off-by: Kefu Chai <kchai@redhat.com>
# ignore debug format
shift
;;
+ -MD )
+ # before CMake v3.18, its ninja build rule always passes `-MD $DEP_FILE``
+ # to ASM_COMPILER. both nasm and GNU assembler accepts this option, but
+ # somehow the ninja generator fails to pass the <DEPFILE> argument. so
+ # just drop it.
+ shift
+ ;;
-W* )
# Warning/error option
shift