1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-19 17:07:29 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Clemens Wasser
3c56ade25f Port CPack
Signed-off-by: Clemens Wasser <clemens.wasser@gmail.com>
2022-07-18 18:58:17 +02:00
Clemens Wasser
e6a0e67a38 Port CMake
Signed-off-by: Clemens Wasser <clemens.wasser@gmail.com>
2022-07-18 18:58:17 +02:00
Rui Ueyama
e4e8535345 Remove CMakeLists.txt
I was experimenting with cmake to see if it is useful for mold,
but it looks like using cmake doesn't make much sense for us.
So I'm undoing all changes that I did for cmake.

cmake is definitely better than autoconf, and it is also useful
if your program is cross-platform. However, neither of the benefits
don't apply to mold; mold doesn't need a complex feature detection,
and it currently supports only ELF-based Unix-like systems.

I think Makefile is a lingua-franca, while CMakeLists.txt isn't.
The good ol' Makefile works just fine for mold.

In the future, mold might become a cross-platform product, and if
that happens, we might want to re-introduce cmake.
2021-07-21 16:27:29 +09:00
Rui Ueyama
d1422a03e2 Check if libxxhash exists 2021-07-21 00:02:44 +09:00
Rui Ueyama
e13b1180af Make cmake to accept -DMOLD_BUILD_STATIC_EXE flags 2021-07-20 23:22:27 +09:00
Rui Ueyama
81ea1d407a Make cmake to accept -DMOLD_USE_SYSTEM_{MIMALLOC,TBB} flags 2021-07-20 13:43:02 +09:00
Rui Ueyama
fe26dad744 Fix cmake build
You can now build mold with the following commands:

  $ mkdir -p out/debug
  $ cd out/debug
  $ cmake -GNinja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug ../..
  $ ninja

To run tests, use the following commands:

  $ cd out/debug
  $ ctest -j$(nproc)
2021-07-20 00:33:28 +09:00
Ahmed Hesham
93845d6a2c Add a CMakeLists.txt file.
This uses CMake to fetch the dependencies without using Git submodules.

Signed-off-by: Ahmed Hesham <ahesham@outlook.com>
2021-06-07 00:28:17 +01:00