Skip to content

Commit

Permalink
Feat: Add support for arm64 processors (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryan-rajoria authored Nov 6, 2024
1 parent 900c8d6 commit c9b5b02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-vcpkg-tst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
rm -f blint.db
- name: Build and upload db
run: |
export VCPKG_FORCE_SYSTEM_BINARIES=arm
mkdir -p temp
source venv/bin/activate
cd blint-db/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
rm -f blint.db
- name: Build and upload db
run: |
export VCPKG_FORCE_SYSTEM_BINARIES=arm
mkdir -p temp
source venv/bin/activate
cd blint-db/
Expand Down
2 changes: 2 additions & 0 deletions blint_db/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@

COMMON_CONNECTION = None
# COMMON_CONNECTION = sqlite3.connect(":memory:")

ARCH_OS="arm64-linux"
4 changes: 2 additions & 2 deletions blint_db/handlers/language_handlers/vcpkg_handler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import subprocess

from blint_db import (DEBUG_MODE, VCPKG_HASH, VCPKG_LOCATION, VCPKG_URL,
from blint_db import (DEBUG_MODE, VCPKG_HASH, VCPKG_LOCATION, VCPKG_URL, ARCH_OS,
logger)
from blint_db.handlers.git_handler import git_checkout_commit, git_clone
from blint_db.handlers.language_handlers import BaseHandler
Expand Down Expand Up @@ -85,7 +85,7 @@ def vcpkg_build(project_name):


def find_vcpkg_executables(project_name):
project_path = f"{project_name}_x64-linux"
project_path = f"{project_name}_{ARCH_OS}"
target_directory = VCPKG_LOCATION / "packages" / project_path
return exec_explorer(target_directory)

Expand Down

0 comments on commit c9b5b02

Please sign in to comment.