Skip to content

Commit 77ecc6b

Browse files
gmp: fix python escape sequence (#28819)
* Fix python escape sequence in gmp conanfile Signed-off-by: Dennis Keck <[email protected]> * Use raw string instead of double escaping Co-authored-by: Francisco Ramírez <[email protected]> --------- Signed-off-by: Dennis Keck <[email protected]> Co-authored-by: Francisco Ramírez <[email protected]>
1 parent d91fe58 commit 77ecc6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/gmp/all/conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def build(self):
149149
# LD flags are not passed properly by the scripts - in particular '-arch x86_64' when crossbuilding
150150
# and invoking libtool to generate one of the libraries. Being conservative here, but there's a chance
151151
# this may need to be generalised
152-
replace_in_file(self, os.path.join(self.build_folder, "libtool"), 'archive_cmds="\$CC ', 'archive_cmds="\$CC $LDFLAGS ')
152+
replace_in_file(self, os.path.join(self.build_folder, "libtool"), r'archive_cmds="\$CC ', r'archive_cmds="\$CC $LDFLAGS ')
153153
autotools.make()
154154
# INFO: According to the gmp readme file, make check should not be omitted, but it causes timeouts on the CI server.
155155
if self.options.run_checks:

0 commit comments

Comments
 (0)