Repository navigation
Conversation
buildinfo.txt improvements
dfandrich
left a comment
There was a problem hiding this comment.
From a Test Clutch perspective, this looks fine—it's not using any of the fields that have been removed. I'm thinking now that maybe it makes sense to include {host,target}.{os,cpu} in the autoconf output, even if it's redundant, since those two fields are both common to AC and CM and there easier for others to use.
Also, please coordinate with me before submitting this since the change of semantics in compiler.version in AC will need some work in Test Clutch to avoid storing inconsistent data.
|
Actually, Test Clutch now automatically figures out which format of compiler version it is, so submit at your leisure. |
|
Thanks Dan! I'm also fine including the fined grained cpu/os fields always. Makes parsing a little bit easier. I'm thinking to make |
|
That's probably a good idea, especially on CI where you can't poke around as easily to figure out the environment.
|
5efaeec to
c708b35
Compare
|
Added a |
c708b35 to
5afd3ea
Compare
buildinfo.txt improvementsbuildinfo.txt improvements
8842c10 to
4b6417e
Compare
Not useful for now. It does contain the OS version. It this ever becomes something we want to track, let's re-add.
It's manually filled and only in a few job. These jobs may grow, let's revisit when this field becomes useful.
This reverts commit 2045268bb210001c9999ceee2100cda173aa1319.
Relevant for Apple platforms with current CI. It tells the SDK flavour and version. Might be relevant for other builds as well, esp. cross.
4b6417e to
41b2966
Compare
- cmake: drop `configure.os`.
This also includes OS version, but thus far it's not important enough
to include it.
- autotools: drop redundant, autotools-only `{target|host}.vendor`.
(it's part of the triplet in `{target|host}`.)
- swap order to `*.cpu` -> `*.os` to match triplet-order.
- cmake: drop redundant `target`.
It's manually filled and only in a (so far) few CI jobs. Let's revisit
when this becomes useful.
- move `buildinfo.txt` to build root.
- dist: add `buildinfo.txt` to `DISTCLEANFILES`.
- autotools: detect human readable compiler version.
- autotools: replace `XXYY` `compiler.version` with "X.Y"-style.
(also to match cmake.)
- autotools: use distinct `compiler_id` for Apple clang: `APPLECLANG`.
To match cmake and also because the the "X.Y"-style version number
is the Apple version, while `XXYY` was a value roughly translated to
mainline llvm/clang version.
- show buildinfo at the end of the configure stage, when run in CI, or
when `CURL_BUILDINFO` or `CURL_CI` env is set.
Follow-up to 1fdea16 curl#14802
Assisted-by: Dan Fandrich
Ref: curl#14802 (comment)
Closes curl#14822
configure.os.This also includes OS version, but thus far it's not important enough
to include it.
{target|host}.vendor.(it's part of the triplet in
{target|host}.)*.cpu→*.osto match triplet-order.target.It's manually filled and only in a (so far) few CI jobs. Let's revisit
when this becomes useful.
buildinfo.txtto build root.buildinfo.txttoDISTCLEANFILES.XXYYcompiler.versionwith "X.Y"-style.(also to match cmake.)
compiler_idfor Apple clang:APPLECLANG.To match cmake and also because the the "X.Y"-style version number
is the Apple version, while
XXYYwas a value roughly translated tomainline llvm/clang version.
when
CURL_BUILDINFOorCURL_CIenv is set.Follow-up to 1fdea16 #14802
Assisted-by: Dan Fandrich
Ref: #14802 (comment)
/cc @dfandrich