From 0e62b4ed501593f363fbd9d8935a4af5908793de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Grodzi=C5=84ski?= Date: Wed, 4 Jun 2025 11:08:26 +0900 Subject: [PATCH] Buildable on ARM macOS --- .vscode/launch.json | 3 --- .vscode/tasks.json | 14 ++++++++++++++ make.sh | 5 ++++- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .vscode/tasks.json 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