Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mesonbuild/compilers/mixins/visualstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_optimization_args(self, optimization_level: str) -> T.List[str]:
return args

def linker_to_compiler_args(self, args: T.List[str]) -> T.List[str]:
return ['/link'] + args
return ['/link'] + [arg for arg in args if arg != '/link']

def get_pic_args(self) -> T.List[str]:
return [] # PIC is handled by the loader on Windows
Expand Down
Loading