Skip to content

Commit cf450ea

Browse files
committed
WIP
1 parent 6695807 commit cf450ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/gen_build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
pl.add_definitions("Py_PYTHON_H")
216216
pl.add_source_files("../../pilotlight/extensions/pl_platform_macos_ext.m")
217217
pl.add_compiler_flags("-fPIC")
218-
pl.add_linker_flags("-ldl -lm")
218+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
219219

220220
with pl.configuration("deploy"):
221221

@@ -242,7 +242,7 @@
242242
pl.add_definitions("Py_PYTHON_H")
243243
pl.add_source_files("../../pilotlight/extensions/pl_platform_macos_ext.m")
244244
pl.add_compiler_flags("-fPIC")
245-
pl.add_linker_flags("-ldl -lm")
245+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
246246

247247
#-----------------------------------------------------------------------------
248248
# [SECTION] examples
@@ -349,7 +349,7 @@
349349
with pl.compiler("clang"):
350350
pl.add_definitions("PL_METAL_BACKEND")
351351
pl.add_compiler_flags("-fPIC", "--debug -g", "-fmodules", "-ObjC++", "-arch arm64")
352-
pl.add_linker_flags("-ldl -lm")
352+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
353353
pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore")
354354
pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared")
355355
pl.add_static_link_libraries("glfwd", "pl_platform_ext")
@@ -614,7 +614,7 @@
614614
pl.set_output_binary("pilotlight")
615615
pl.set_output_binary_extension(".so")
616616
pl.add_compiler_flags("-fPIC", "--debug -g", "-std=c99", "-fmodules", "-ObjC", "-arch arm64")
617-
pl.add_linker_flags("-ldl -lm")
617+
pl.add_linker_flags("-ldl -lm", "-undefined dynamic_lookup")
618618
pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore")
619619
pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared")
620620
pl.add_static_link_libraries("glfwd", "pl_platform_ext")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def setup_package():
3333

3434
metadata = dict(
3535
name='pilotlight', # Required
36-
version="0.1.6", # Required
36+
version="0.1.7", # Required
3737
author="Jonathan Hoffstadt", # Optional
3838
author_email="jonathanhoffstadt@yahoo.com", # Optional
3939
description='Pilot Light', # Required

0 commit comments

Comments
 (0)