fix(compiler): Makefile: Invoke CMake for each Python target separately

The Makefile target `python-bindings` invokes CMake with multiple
targets specified after the `--target` commandline option. However, as
per the CMake manpage, only one target may be specified at once.

This changes the single invocation of CMake to separate invocations
for each target.

Tested with CMake version 3.13.4.
This commit is contained in:
Andi Drebes
2021-10-19 21:56:26 +02:00
committed by Quentin Bourgerie
parent 527887bbf9
commit e7b2582639

View File

@@ -26,7 +26,8 @@ zamacompiler: build-initialized
cmake --build $(BUILD_DIR) --target zamacompiler
python-bindings: build-initialized
cmake --build $(BUILD_DIR) --target ZamalangMLIRPythonModules ZamalangPythonModules
cmake --build $(BUILD_DIR) --target ZamalangMLIRPythonModules
cmake --build $(BUILD_DIR) --target ZamalangPythonModules
test-check: zamacompiler file-check not
$(BUILD_DIR)/bin/llvm-lit -v tests/