summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2021-07-28 10:10:40 -0700
committerCommit Bot <commit-bot@chromium.org>2021-08-02 15:43:22 +0000
commit1821e9423af84c7a126a4a15303c6492dd44e94b (patch)
treeb878e1e54b7497cbd74e57ebbef4c50dcc4ee975 /Makefile.rules
parentfbdb8051c96eb0ec7f533ef091d4b49a8c98d5b3 (diff)
downloadchrome-ec-1821e9423af84c7a126a4a15303c6492dd44e94b.tar.gz
make: Compile host tests in 32-bit mode
Compile the host tests in 32-bit mode instead of 64-bit mode as it's more likely to match the actual environments our ECs run on. For instance, in 32-bit mode the tests might actually have a prayer of finding a torn read or write bug, whereas in 64-bit mode 64-bit integers are always operated on atomically. BUG=b:179062230 BRANCH=none TEST=make -j runhosttests BOARD=host on x86_64 and i686 Signed-off-by: Evan Green <evgreen@chromium.org> Change-Id: I02517066337ec08c311c1f7daae5d3de84b1f4c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3059231 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 8cd04edf38..0cdd724c9d 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -64,7 +64,7 @@ export STATIC_VERSION
# a ccache issue.
# commands to build all targets
-cmd_libec = $(LD) -r $^ -o $@.1.o ${silent_err} && \
+cmd_libec = $(LD) -r $(LD_R_FLAGS) $^ -o $@.1.o ${silent_err} && \
$(OBJCOPY) --localize-hidden $@.1.o $@.2.o ${silent_err} && \
$(AR) scr $@ $@.2.o ${silent_err}
cmd_lds = $(CPP) -P -C -MMD -MF $@.d -MT $@ $(CPPFLAGS) $< -o $@