File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55namespace SPC \builder \extension ;
66
77use SPC \builder \Extension ;
8+ use SPC \toolchain \ToolchainManager ;
9+ use SPC \toolchain \ZigToolchain ;
810use SPC \util \CustomExt ;
911
1012#[CustomExt('imagick ' )]
@@ -19,7 +21,7 @@ public function getUnixConfigureArg(bool $shared = false): string
1921 protected function splitLibsIntoStaticAndShared (string $ allLibs ): array
2022 {
2123 [$ static , $ shared ] = parent ::splitLibsIntoStaticAndShared ($ allLibs );
22- if (str_contains (getenv ('PATH ' ), 'rh/devtoolset ' ) || str_contains (getenv ('PATH ' ), 'rh/gcc-toolset ' )) {
24+ if (ToolchainManager:: getToolchainClass () !== ZigToolchain::class && str_contains (getenv ('PATH ' ), 'rh/devtoolset ' ) || str_contains (getenv ('PATH ' ), 'rh/gcc-toolset ' )) {
2325 $ static .= ' -l:libstdc++.a ' ;
2426 $ shared = str_replace ('-lstdc++ ' , '' , $ shared );
2527 }
You can’t perform that action at this time.
0 commit comments