Skip to content

Commit 41fc980

Browse files
committed
Do not link "advapi32" library
1 parent a5d0d5c commit 41fc980

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

brian2wasm/device.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,9 @@ def build(self, html_file=None, html_content=None, **kwds):
758758
+ prefs["codegen.cpp.library_dirs"]
759759
+ [d for c in self.code_objects.values() for d in c.compiler_kwds.get("library_dirs", [])]
760760
)
761+
# This library is only relevant when targetting Windows
762+
if "advapi32" in self.libraries:
763+
self.libraries.remove("advapi32")
761764
libraries = (
762765
self.libraries
763766
+ prefs["codegen.cpp.libraries"]

0 commit comments

Comments
 (0)