Skip to content

Commit 874f748

Browse files
aydin.kimlarsbergstrom
aydin.kim
authored andcommitted
support android cross build
1 parent 8943cef commit 874f748

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ VPATH=%VPATH%
33
RUST ?= rust
44
RUSTC ?= rustc
55
RUSTFLAGS ?= -O
6+
HOST_RUSTFLAGS ?= -O
67
VERSION=0.1-pre
78

89
libhttp_files=$(shell find $(VPATH)/src/libhttp/ -type f -name '*.rs') \
@@ -12,7 +13,7 @@ libhttp_files=$(shell find $(VPATH)/src/libhttp/ -type f -name '*.rs') \
1213
all: libhttp.dummy
1314

1415
codegen: $(wildcard $(VPATH)/src/libhttp/codegen/*.rs)
15-
$(RUSTC) $(RUSTFLAGS) $(VPATH)/src/libhttp/codegen/codegen.rs -o codegen
16+
$(RUSTC) $(HOST_RUSTFLAGS) $(VPATH)/src/libhttp/codegen/codegen.rs -o codegen
1617

1718
$(VPATH)/src/libhttp/generated/%.rs: codegen
1819
./codegen $(patsubst $(VPATH)/src/libhttp/generated/%,%,$@) $(VPATH)/src/libhttp/generated/

0 commit comments

Comments
 (0)