diff options
| author | Saikari <[email protected]> | 2026-01-28 04:08:09 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-01-28 04:08:09 +0300 |
| commit | fe46022f5f0deca6d5cfeba757660a609fa46a78 (patch) | |
| tree | 5fe80fc840f8bd8141001b34903d52d4863530e2 | |
| parent | 4489af7a955b9bef05968d69f29747cef2609e3b (diff) | |
fix: improve syslink flag handling for pthread library in Nim
| -rw-r--r-- | xmake/modules/core/tools/nim.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nim.lua b/xmake/modules/core/tools/nim.lua index 8a76ec865..b37d29da5 100644 --- a/xmake/modules/core/tools/nim.lua +++ b/xmake/modules/core/tools/nim.lua @@ -148,7 +148,7 @@ function nf_syslink(self, lib) return string.format("--passL:\"%s.lib\"", lib) else if lib == "pthread" then - return "--threads:on --passL:\"-lpthread\" --dynlibOverride:\"pthread\"" + return string.format("--threads:on --passL:\"-l%s\" --dynlibOverride:\"pthread\"", lib) else return string.format("--passL:\"-l%s\"", lib) end |
