Commit 208a8444 authored by Camil Staps's avatar Camil Staps 🍃

Set ByteCode path in project files by default

parent 1ef6e7c7
Pipeline #23469 passed with stage
in 1 minute and 10 seconds
......@@ -879,13 +879,13 @@ step intr (DLink ds=:{ok, newpaths, fileinfo, libsinfo, modpaths, abccache, proj
# ps = showInfo line ps
= continue False newpaths False fileinfo libsinfo modpaths project intr (abccache, ps)
# (ok,ps) = if (PR_GetByteCodePath project <> "") (ByteCodeLink fileinfo project ps) (True, ps)
# (ok,ps) = if (cgo.generate_bytecode && PR_GetByteCodePath project <> "") (ByteCodeLink fileinfo project ps) (True, ps)
| not ok
= continue False newpaths False fileinfo libsinfo modpaths project intr (abccache, ps)
# (ok,ps) = if (lo.strip_bytecode && PR_GetByteCodePath project <> "") (ByteCodeStrip lo.keep_bytecode_symbols fileinfo project ps) (True, ps)
# (ok,ps) = if (cgo.generate_bytecode && lo.strip_bytecode && PR_GetByteCodePath project <> "") (ByteCodeStrip lo.keep_bytecode_symbols fileinfo project ps) (True, ps)
| not ok
= continue False newpaths False fileinfo libsinfo modpaths project intr (abccache, ps)
# (ok,ps) = if (lo.prelink_bytecode && PR_GetByteCodePath project <> "") (ByteCodePrelink project ps) (True, ps)
# (ok,ps) = if (cgo.generate_bytecode && lo.prelink_bytecode && PR_GetByteCodePath project <> "") (ByteCodePrelink project ps) (True, ps)
| not ok
= continue False newpaths False fileinfo libsinfo modpaths project intr (abccache, ps)
......
......@@ -113,6 +113,7 @@ PR_NewProject main_module_file_name eo compilerOptions cgo ao prjpaths linkOptio
, execpath = IF_WINDOWS
("{Project}"+++DirSeparatorString+++add_dot_exe_if_necessary modname) // Win
("{Project}"+++DirSeparatorString+++modname) // Mac
, bytecode_path = "{Project}"+++DirSeparatorString+++modname+++".bc"
, inflist =
{ mn = modname
, info = { dir = "{Project}"//dirname
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment