File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change 219
219
function fixpath (
220
220
filename:: AbstractString ;
221
221
badpath = basebuilddir,
222
- goodpath = juliadir,
222
+ goodpath = basepath ( " .. " )
223
223
)
224
224
startswith (filename, badpath) || return fullpath (normpath (filename)) # NOTE: `fullpath` added when adapted
225
225
filec = filename
@@ -251,35 +251,6 @@ const basebuilddir = let # NOTE: changed from `begin` to `let` when adapted
251
251
dirname (dirname (sysimg))
252
252
end
253
253
254
- """
255
- juliadir
256
-
257
- Constant specifying full path to julia top-level source directory.
258
- This should be reliable even for local builds, cross-builds, and binary installs.
259
- """
260
- const juliadir = begin
261
- local jldir = basebuilddir
262
- if ! isdir (joinpath (jldir, " base" ))
263
- # Binaries probably end up here. We fall back on Sys.BINDIR
264
- jldir = joinpath (Sys. BINDIR, Base. DATAROOTDIR, " julia" )
265
- if ! isdir (joinpath (jldir, " base" ))
266
- while true
267
- trydir = joinpath (jldir, " base" )
268
- isdir (trydir) && break
269
- trydir = joinpath (jldir, " share" , " julia" , " base" )
270
- if isdir (trydir)
271
- jldir = joinpath (jldir, " share" , " julia" )
272
- break
273
- end
274
- jldirnext = dirname (jldir)
275
- jldirnext == jldir && break
276
- jldir = jldirnext
277
- end
278
- end
279
- end
280
- normpath (jldir)
281
- end
282
-
283
254
use_compiled_modules () = Base. JLOptions (). use_compiled_modules != 0
284
255
285
256
# For tracking Julia's own stdlibs
You can’t perform that action at this time.
0 commit comments