We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2dea83 commit e6bec8eCopy full SHA for e6bec8e
1 file changed
src/SPC/builder/traits/UnixLibraryTrait.php
@@ -119,9 +119,9 @@ public function getLibExtraCFlags(): string
119
{
120
$env = getenv($this->getSnakeCaseName() . '_CFLAGS') ?: '';
121
if (!str_contains($env, $this->builder->arch_c_flags)) {
122
- $env .= $this->builder->arch_c_flags;
+ $env .= ' ' .$this->builder->arch_c_flags;
123
}
124
- return $env;
+ return trim($env);
125
126
127
public function getLibExtraLdFlags(): string
@@ -138,8 +138,8 @@ public function getLibExtraCXXFlags(): string
138
139
$env = getenv($this->getSnakeCaseName() . '_CXXFLAGS') ?: '';
140
if (!str_contains($env, $this->builder->arch_cxx_flags)) {
141
- $env .= $this->builder->arch_cxx_flags;
+ $env .= ' ' . $this->builder->arch_cxx_flags;
142
143
144
145
0 commit comments