mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use -latomic when linking whe using clang on Linux
According to the LLVM documentation when using GNU's libstdc++ clang will not automatically link with -latomic. This is necessary since we merged c++11 atomics support. This fixes linking using Clang on Linux
This commit is contained in:
parent
ed8333f6bc
commit
c9b3a00a63
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ def configure(env):
|
|||
env["CC"] = "clang"
|
||||
env["CXX"] = "clang++"
|
||||
env.extra_suffix = ".llvm" + env.extra_suffix
|
||||
env.Append(LIBS=["atomic"])
|
||||
|
||||
if env["use_lld"]:
|
||||
if env["use_llvm"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue