Closed Zabrane closed 1 month ago
From https://git-scm.com/docs/git-checkout: "Specifying -b causes a new branch to be created as if git-branch[1] were called and then checked out." So what you're doing is not checking out a specific tag, you're creating a new branch off main, named "v2.1.6".
From https://git-scm.com/docs/git-checkout: "Specifying -b causes a new branch to be created as if git-branch[1] were called and then checked out." So what you're doing is not checking out a specific tag, you're creating a new branch off main, named "v2.1.6".
My bad. Thanks @res2k
> git clone https://github.com/microsoft/mimalloc.git
> mimalloc
> git checkout -b v2.1.6
Switched to a new branch 'v2.1.6'
> mkdir -p out/release
> cd out/release
> cmake ../..
[...]
-- Library base name: mimalloc
-- Version : 2.1
-- Build type : release
-- C Compiler : /usr/bin/cc
-- Compiler flags : -Wall;-Wextra;-Wno-unknown-pragmas;-fvisibility=hidden;-Wstrict-prototypes;-ftls-model=initial-exec;-fno-builtin-malloc
-- Compiler defines :
-- Link libraries : /usr/lib/x86_64-linux-gnu/libpthread.a;/usr/lib/x86_64-linux-gnu/librt.a
-- Build targets : shared;static;object;tests
--
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/mimalloc/out/release
All good.
All good.
Just be aware that you're still not using the right command; you're not checking out a specific tag, you're creating a new branch. (Which is also what the output tells you.)
Hi guys
I don't know why even when switching to
v2.1.6
, cmake is keeps telling me that it will buildmimalloc v1.8.0
:Am i missing something? Many thanks.