We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__init__
1 parent 4178477 commit 39beabbCopy full SHA for 39beabb
src/GPUCompiler.jl
@@ -53,6 +53,8 @@ _precompile_()
53
54
55
compile_cache = "" # defined in __init__()
56
+const pkgver = @static VERSION > v"1.9" ? Base.pkgversion(GPUCompiler) : ""
57
+
58
59
function __init__()
60
STDERR_HAS_COLOR[] = get(stderr, :color, false)
@@ -62,7 +64,6 @@ function __init__()
62
64
dir = joinpath(dir, "v$(VERSION.major).$(VERSION.minor)")
63
65
if VERSION > v"1.9"
66
## also add the package version
- pkgver = Base.pkgversion(GPUCompiler)
67
dir = joinpath(dir, "v$(pkgver.major).$(pkgver.minor)")
68
end
69
mkpath(dir)
0 commit comments