File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414#  limitations under the License.
1515# 
1616set  -euo pipefail -x
17+ arch=$( uname -m |  tr ' [:upper:]'   ' [:lower:]' ) 
1718
19+ ARCH=$arch 
1820VER=v0.35.1
19- wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -x86_64 -linux-c-api.tar.xz
20- tar -xvf ./wasmtime-${VER} -x86_64 -linux-c-api.tar.xz >  /dev/null
21+ wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -${ARCH} -linux-c-api.tar.xz
22+ tar -xvf ./wasmtime-${VER} -${ARCH} -linux-c-api.tar.xz >  /dev/null
2123if  [ -d  wasmtime-c-api ];  then 
2224    rm -rf wasmtime-c-api
2325fi 
24- mv wasmtime-${VER} -x86_64 -linux-c-api wasmtime-c-api
26+ mv wasmtime-${VER} -${ARCH} -linux-c-api wasmtime-c-api
2527if  echo  " int main(void) {}"   |  gcc -o /dev/null -v -x c - & >  /dev/stdout|  grep collect |  tr -s "  "   " \012"   |  grep musl;  then 
2628    #  build from source code if the libc is musl
2729    git clone https://github.com/bytecodealliance/wasmtime -b ${VER}  --depth 1 \
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments