|
32 | 32 |
|
33 | 33 | # project wide settings |
34 | 34 | pl.set_output_directory("../out") |
35 | | - pl.add_link_directories("../out", "../../pilotlight/out") |
| 35 | + pl.add_link_directories("../out") |
36 | 36 | pl.add_definitions("_USE_MATH_DEFINES") |
37 | 37 | pl.add_include_directories("../src", "../extensions") |
38 | 38 |
|
|
140 | 140 | # macos |
141 | 141 | with pl.platform("Darwin"): |
142 | 142 | with pl.compiler("clang"): |
143 | | - pl.add_compiler_flags("-fPIC", "-std=c++14", "--debug -g") |
| 143 | + pl.add_compiler_flags("-fPIC", "-std=c++14", "--debug -g", "-Warc-bridge-casts-disallowed-in-nonarc") |
144 | 144 | pl.add_linker_flags("-ldl -lm", "-lstdc++") |
145 | 145 |
|
146 | 146 | # default config |
|
163 | 163 | # macos |
164 | 164 | with pl.platform("Darwin"): |
165 | 165 | with pl.compiler("clang"): |
166 | | - pl.add_compiler_flags("-fPIC", "-std=c++14") |
| 166 | + pl.add_compiler_flags("-fPIC", "-std=c++14", "-Warc-bridge-casts-disallowed-in-nonarc") |
167 | 167 | pl.add_linker_flags("-ldl -lm", "-lstdc++") |
168 | 168 |
|
169 | 169 | #----------------------------------------------------------------------------- |
|
474 | 474 | pl.add_definitions("PL_METAL_BACKEND") |
475 | 475 | pl.set_output_binary("imgui") |
476 | 476 | pl.set_output_binary_extension(".so") |
477 | | - pl.add_compiler_flags("-fPIC", "--debug -g", "-std=c99", "-fmodules", "-ObjC++", "-arch arm64") |
| 477 | + pl.add_compiler_flags("-fPIC", "--debug -g", "-fmodules", "-ObjC++", "-arch arm64") |
478 | 478 | pl.add_linker_flags("-ldl -lm") |
479 | 479 | pl.add_link_frameworks("Metal", "MetalKit", "Cocoa", "IOKit", "CoreVideo", "QuartzCore") |
480 | 480 | pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared") |
|
0 commit comments