9 lines
		
	
	
		
			501 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			501 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash -ex
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								OUTDIR="${1:-../../../target/release/}"
							 | 
						||
| 
								 | 
							
								THISDIR=$(dirname "$0")
							 | 
						||
| 
								 | 
							
								mkdir -p "$OUTDIR"
							 | 
						||
| 
								 | 
							
								/usr/local/opt/llvm/bin/clang -Werror -target bpf -O2 -emit-llvm -fno-builtin -o "$OUTDIR"/tictactoe_dashboard_c.bc -c "$THISDIR"/src/tictactoe_dashboard.c
							 | 
						||
| 
								 | 
							
								/usr/local/opt/llvm/bin/llc -march=bpf -filetype=obj -function-sections -o "$OUTDIR"/tictactoe_dashboard_c.o "$OUTDIR"/tictactoe_dashboard_c.bc
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# /usr/local/opt/llvm/bin/llvm-objdump -color -source -disassemble "$OUTDIR"/tictactoe_dashboard_c.o
							 |