Skip to content

Commit

Permalink
Add bb_full_target within the build environment. (#644)
Browse files Browse the repository at this point in the history
Closes #619
  • Loading branch information
staticfloat authored Jan 31, 2020
1 parent 31f7ebe commit 19b6cff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/build_tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ The following variables are useful to control the build script over different ta
* `libdir`: the path to the directory where the shared libraries should be installed. This is `${prefix}/bin` when building for Windows, `${prefix}/lib` for all other platforms
* `bindir`: the path to the directory where the executables should be installed. This is equivalent to `${prefix}/bin`
* `target`: the target platform
* `bb_full_target`: the full target platform, containing things like libstdc++ string ABI platform tags, and libgfortran version
* `nproc`: the number of processors of the host machine, useful for parallel building (e.g., `make -j${nproc}`)
* `nbits`: number of bits of the target architecture (usually it is either 32 or 64)
* `proc_family`: target processor family (e.g., "intel", "power", or "arm")
Expand Down
2 changes: 2 additions & 0 deletions src/Runner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ function platform_envs(platform::Platform, src_name::AbstractString; host_platfo
# overwritten in `./configure`, and we want tools like `uname` to still see it)
"bb_target" => target,
"target" => target,
# Also give people access to the full `-cxxYY` and `-libgfortranX` triplet if they really want it
"bb_full_target" => triplet(platform),
"rust_target" => map_rust_target(platform),
"rust_host" => map_rust_target(rust_host), # use glibc since musl is broken. :( https://github.com/rust-lang/rust/issues/59302
"nproc" => "$(get(ENV, "BINARYBUILDER_NPROC", Sys.CPU_THREADS))",
Expand Down

0 comments on commit 19b6cff

Please sign in to comment.