embedder (610B)
1 #!/bin/sh 2 3 # Sets the compile_commands.json symlink at the root of the Flutter engine 4 # repo, to one from the debug unopt build directory for the specified OS. 5 # Useful for letting your editor know which embedder/engine configuration you'd 6 # like clangd analysis for. 7 8 COMPILE_COMMANDS="$HOME/Developer/flutter/engine/src/compile_commands.json" 9 10 OS=$1 11 case $OS in 12 ios) 13 rm -f "$COMPILE_COMMANDS" 14 ln -s out/ios_debug_unopt/compile_commands.json "$COMPILE_COMMANDS" 15 ;; 16 macos) 17 rm -f "$COMPILE_COMMANDS" 18 ln -s out/host_debug_unopt_arm64/compile_commands.json "$COMPILE_COMMANDS" 19 ;; 20 esac