diff --git a/.vscode/launch.json b/.vscode/launch.json index e8a73f9..072731f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f7a0f06 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build Bits Runner Builder", + "type": "shell", + "command": "./make.sh", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/make.sh b/make.sh index 70c4b44..39f883b 100755 --- a/make.sh +++ b/make.sh @@ -1,3 +1,6 @@ #!/bin/bash -cc -g -std=c++17 -lc++ -lllvm -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -L/usr/local/opt/llvm/lib -I/usr/local/opt/llvm/include src/*.cpp -o brb \ No newline at end of file +IFLAGS="-I/usr/local/opt/llvm/include -I/opt/homebrew/opt/llvm/include" +LDFLAGS="-L/usr/local/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib" + +cc -g -std=c++17 -lc++ -lllvm -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 ${LDFLAGS} ${IFLAGS} src/*.cpp -o brb \ No newline at end of file