File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -118,4 +118,13 @@ public function getLibExtraLibs(): string
118118 {
119119 return getenv ($ this ->getSnakeCaseName () . '_LIBS ' ) ?: '' ;
120120 }
121+
122+ public function getLibExtraCXXFlags (): string
123+ {
124+ $ env = getenv ($ this ->getSnakeCaseName () . '_CXXFLAGS ' ) ?: '' ;
125+ if (!str_contains ($ env , $ this ->builder ->arch_cxx_flags )) {
126+ $ env .= $ this ->builder ->arch_cxx_flags ;
127+ }
128+ return $ env ;
129+ }
121130}
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ public function initializeEnv(BSDLibraryBase|LinuxLibraryBase|MacOSLibraryBase $
7070 'CFLAGS ' => $ library ->getLibExtraCFlags (),
7171 'LDFLAGS ' => $ library ->getLibExtraLdFlags (),
7272 'LIBS ' => $ library ->getLibExtraLibs (),
73+ 'CXXFLAGS ' => $ library ->getLibExtraCXXFlags (),
7374 ]);
7475 return $ this ;
7576 }
You can’t perform that action at this time.
0 commit comments