diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41b09298d7309..56aa887ba91b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file diff --git a/riscv64config/riscv64-debug b/riscv64config/riscv64-debug new file mode 100644 index 0000000000000..fce72b6f14c9e --- /dev/null +++ b/riscv64config/riscv64-debug @@ -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 diff --git a/simulator-riscv64 b/riscv64config/simulator-riscv64 similarity index 100% rename from simulator-riscv64 rename to riscv64config/simulator-riscv64