Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 18, 2024
1 parent 2c765de commit 1139a9d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform
import subprocess
import sysconfig
import numpy as np
Expand All @@ -18,13 +19,16 @@ cpppath = [
np.get_include(),
]

if arch == "Darwin":
if platform.processor() == "arm":
brew_prefix = subprocess.check_output(['brew', '--prefix'], encoding='utf8').strip()
print('xxxxxxx', brew_prefix)
libpath += [
f"{brew_prefix}/lib",
"/opt/homebrew/lib"
]
cpppath += [
f"{brew_prefix}/include",
"/opt/homebrew/include"
]

env = Environment(
Expand All @@ -42,7 +46,7 @@ env = Environment(
"-Werror=format-extra-args",
"-Wshadow",
],
LIBPATH=libpath + ["#rednose/examples/generated"],
LIBPATH=libpath + ["#rednose/examples/generated", '/opt/homebrew/lib'],
CFLAGS="-std=gnu11",
CXXFLAGS="-std=c++1z",
CPPPATH=cpppath,
Expand Down

0 comments on commit 1139a9d

Please sign in to comment.