Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be37790

Browse filesBrowse files
committed
setupext: put pkg-config -I, -L, -l locations at the head of the list
The assumption here is that we want the pkg-config info to take precedence, so its -I and -L output should be prepended, not appended to the lists used to construct the compiler and linker commands. It is less clear whether the -l info also should be prepended, as it is in the changeset; ideally, it wouldn't matter, but for some compilers, it might. If so, -l can be handled separately from -I and -L.
1 parent 350320f commit be37790
Copy full SHA for be37790

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def setup_extension(self, ext, package, default_include_dirs=[],
289289
for token in output.split():
290290
attr = flag_map.get(token[:2])
291291
if attr is not None:
292-
getattr(ext, attr).append(token[2:])
292+
getattr(ext, attr).insert(0, token[2:])
293293

294294
if use_defaults:
295295
basedirs = get_base_dirs()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.