Skip to content

Commit 9dec841

Browse files
committed
Disable LTO for component benchmarks
Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent a64323f commit 9dec841

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/actions/bench/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ runs:
7979
--cflags="${{ inputs.cflags }} ${{ inputs.archflags }}" \
8080
--opt=$([[ ${{ inputs.opt }} == "false" ]] && echo "no_opt" || echo "opt") \
8181
-v --output=output.json ${{ inputs.bench_extra_args }}
82-
8382
./scripts/tests bench --components -c ${{ inputs.perf }} --cross-prefix="${{ inputs.cross_prefix }}" \
8483
--cflags="${{ inputs.cflags }} ${{ inputs.archflags }}" \
8584
--opt=$([[ ${{ inputs.opt }} == "false" ]] && echo "no_opt" || echo "opt") \

test/mk/components.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ $(BUILD_DIR)/libmldsa.a: $(MLDSA44_OBJS) $(MLDSA65_OBJS) $(MLDSA87_OBJS)
3636
$(MLDSA44_DIR)/bin/bench_mldsa44: CFLAGS += -Itest/hal
3737
$(MLDSA65_DIR)/bin/bench_mldsa65: CFLAGS += -Itest/hal
3838
$(MLDSA87_DIR)/bin/bench_mldsa87: CFLAGS += -Itest/hal
39-
$(MLDSA44_DIR)/bin/bench_components_mldsa44: CFLAGS += -Itest/hal
40-
$(MLDSA65_DIR)/bin/bench_components_mldsa65: CFLAGS += -Itest/hal
41-
$(MLDSA87_DIR)/bin/bench_components_mldsa87: CFLAGS += -Itest/hal
39+
$(MLDSA44_DIR)/bin/bench_components_mldsa44: CFLAGS += -Itest/hal -fno-lto
40+
$(MLDSA65_DIR)/bin/bench_components_mldsa65: CFLAGS += -Itest/hal -fno-lto
41+
$(MLDSA87_DIR)/bin/bench_components_mldsa87: CFLAGS += -Itest/hal -fno-lto
4242

4343
$(MLDSA44_DIR)/bin/test_stack44: CFLAGS += -Imldsa -fstack-usage
4444
$(MLDSA65_DIR)/bin/test_stack65: CFLAGS += -Imldsa -fstack-usage

0 commit comments

Comments
 (0)