From e7b258263914e9a876809ab8299a07955089e892 Mon Sep 17 00:00:00 2001 From: Andi Drebes Date: Tue, 19 Oct 2021 21:56:26 +0200 Subject: [PATCH] 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. --- compiler/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/Makefile b/compiler/Makefile index 5ba032d56..7055fd1dc 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -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/