mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 05:11:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			921 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			921 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| #
 | |
| # Copyright (C) 2019 Intel Corporation.  All rights reserved.
 | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 | |
| #
 | |
| 
 | |
| if [[ $1 == "--classic-interp" ]]; then
 | |
|     CMAKE_FLAGS="-DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=0"
 | |
| elif [[ $1 == "--fast-interp" ]]; then
 | |
|     CMAKE_FLAGS="-DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_FAST_INTERP=1"
 | |
| elif [[ $1 == "--fast-jit" ]]; then
 | |
|     CMAKE_FLAGS="-DWAMR_BUILD_FAST_JIT=1"
 | |
| elif [[ $1 == "--jit" ]]; then
 | |
|     CMAKE_FLAGS="-DWAMR_BUILD_JIT=1"
 | |
| elif [[ $1 == "--multi-tier-jit" ]]; then
 | |
|     CMAKE_FLAGS="-DWAMR_BUILD_FAST_JIT=1 -DWAMR_BUILD_JIT=1"
 | |
| fi
 | |
| 
 | |
| TARGET="X86_64"
 | |
| if [[ $3 = "X86_32" ]]; then
 | |
|     TARGET="X86_32"
 | |
| fi
 | |
| 
 | |
| echo "============> test dump-invoke-native"
 | |
| 
 | |
| rm -fr build
 | |
| mkdir build && cd build
 | |
| cmake .. ${CMAKE_FLAGS} -DWAMR_BUILD_TARGET=${TARGET}
 | |
| make -j ${nproc} > /dev/null 2>&1
 | |
| cd ..
 | |
| 
 | |
| echo "============> run test-invoke-native"
 | |
| ./build/test_invoke_native
 | 
