Skip to content

Commit 2a6bfe7

Browse files
committed
Remove nested @static
The inner `@static` seems to cause problems in some cases.
1 parent f777451 commit 2a6bfe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/compiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const POPLAR_SDK_LLVM_MAPPING = Dict(
209209
function __init__()
210210
@static if get(POPLAR_SDK_LLVM_MAPPING, Base.thisminor(Poplar.SDK_VERSION), v"0") != Base.thismajor(Base.libllvm_version)
211211
sdk_llvm_version = get(POPLAR_SDK_LLVM_MAPPING, Base.thisminor(Poplar.SDK_VERSION), "UNKNOWN")
212-
@static if sdk_llvm_version == "UNKNOWN" && !isnothing(Sys.which("popc"))
212+
if sdk_llvm_version == "UNKNOWN" && !isnothing(Sys.which("popc"))
213213
sdk_llvm_version = match(r"clang version ([\d.]+)", readchomp(`popc --version`))[1]
214214
end
215215
@warn """

0 commit comments

Comments
 (0)