Skip to content

Commit

Permalink
makefile: add log size check
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Zhang Jian <[email protected]>
  • Loading branch information
jerryzj committed Oct 24, 2024
1 parent 23b72dc commit 1205f43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rvv-intrinsic-generator/Makefile.api
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
SHELL := /bin/bash

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

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

0 comments on commit 1205f43

Please sign in to comment.