Skip to content

Commit 1205f43

Browse files
committed
makefile: add log size check
Signed-off-by: Jerry Zhang Jian <[email protected]>
1 parent 23b72dc commit 1205f43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rvv-intrinsic-generator/Makefile.api

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
###############################################################################
16+
SHELL := /bin/bash
1617

1718
CFLAGS?=-O -Werror=implicit-function-declaration -menable-experimental-extensions
1819
ARCH_FLAG?=-march=rv64gcv_zfh_zvbb_zvbc_zvfbfmin_zvfbfwma_zvfh_zvkng_zvksg_zvl512b
@@ -39,4 +40,6 @@ clean:
3940
rm -f test_report.xml
4041

4142
%.log: $(BASE_DIR)/%.c
42-
-$(CC) $< -S -o /dev/null $(ARCH_FLAG) $(CFLAGS) $(EXTRA_CFLAGS) > $@ 2>&1
43+
@echo "Testing $<..."
44+
-bash -c "$(CC) $< -S -o /dev/null $(ARCH_FLAG) $(CFLAGS) $(EXTRA_CFLAGS)" > $@ 2>&1
45+
@echo "Completed testing $< (log size: $$(wc -c < $@))"

0 commit comments

Comments
 (0)