Buildable on ARM macOS

This commit is contained in:
Rafał Grodziński
2025-06-04 11:08:26 +09:00
parent 3ad912011c
commit 0e62b4ed50
3 changed files with 18 additions and 4 deletions

3
.vscode/launch.json vendored
View File

@@ -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": [
{

14
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Bits Runner Builder",
"type": "shell",
"command": "./make.sh",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@@ -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
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