Skip to content

Commit

Permalink
add cross build (mozilla#18)
Browse files Browse the repository at this point in the history
* add cross build

* alter path
  • Loading branch information
luyahan authored Aug 26, 2022
1 parent 9145e82 commit 4e2c8da
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ jobs:
- uses: actions/checkout@v3

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: MOZCONFIG=./simulator-riscv64 ./mach build
- name:build simulator
run: MOZCONFIG=$PWD/riscv64config/simulator-riscv64 ./mach build

# Runs a set of commands using the runners shell
- name: cross build riscv64
run: MOZCONFIG=$PWD/riscv64config/riscv64-debug CFLAGS="-I/home/lyh/zlib/include" CXXFLAGS="-I/home/lyh/zlib/include" LDFLAGS=-L/home/lyh/zlib/lib/ CC=/home/lyh/llvm-build/Release+Asserts/bin/clang++ CXX=/home/lyh/llvm-build/Release+Asserts/bin/clang++ ./mach build
17 changes: 17 additions & 0 deletions riscv64config/riscv64-debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Build only the JS shell
ac_add_options --enable-application=js

# Enable optimization for speed
ac_add_options --enable-optimize

# Disable debug checks to better match a release build of Firefox.
ac_add_options --enable-debug

# Use a separate objdir for optimized builds to allow easy
# switching between optimized and debug builds while developing.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-opt-@CONFIG_GUESS@

ac_add_options --target=riscv64-unknown-linux-gnu
ac_add_options --disable-bootstrap
ac_add_options --disable-rust-simd
ac_add_options --enable-jit
File renamed without changes.

0 comments on commit 4e2c8da

Please sign in to comment.