Skip to content

Commit

Permalink
should work
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 18, 2024
1 parent a24e8ce commit 754355c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ envCython = env.Clone()
envCython["CCFLAGS"] += ["-Wno-#warnings", "-Wno-shadow", "-Wno-deprecated-declarations"]

envCython["LIBS"] = []
if arch == "Darwin":
if platform.processor() == "arm":
print('AAAAA:', arch)
envCython["CPPPATH"] += [python_path, np.get_include()]
envCython["LINKFLAGS"] = ["-bundle", "-undefined", "dynamic_lookup"]
elif arch == "aarch64":
Expand Down
2 changes: 1 addition & 1 deletion rednose/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ if common != "":
ekf_objects = env.SharedObject(cc_sources)
rednose = env.Library("helpers/ekf_sym", ekf_objects, LIBS=libs)
rednose_python = envCython.Program("helpers/ekf_sym_pyx.so", ["helpers/ekf_sym_pyx.pyx", ekf_objects],
LIBS=libs + envCython["LIBS"], CPPPATH=["/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12", "/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11"])
LIBS=libs + envCython["LIBS"])

Export('rednose', 'rednose_python')

0 comments on commit 754355c

Please sign in to comment.