1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-26 13:10:46 +03:00
Commit Graph

164 Commits

Author SHA1 Message Date
Rui Ueyama
3987ebaf34 Add -DMOLD_USE_MOLD=O~n/OFF 2022-08-08 11:11:26 +08:00
Rui Ueyama
f8a1d6b3f1 Change tab width from 4 to 2 2022-08-08 11:04:08 +08:00
Rui Ueyama
00e7119440 Simplify 2022-08-07 15:34:13 +08:00
Rui Ueyama
76b1845732 Remove unnecessary commands 2022-08-07 13:52:53 +08:00
Rui Ueyama
fb91f8dfc2 Do not link against external tbb and mimalloc by default
We do not want to change the default settings when we migrate to
cmake.

Also fixed build failures.
2022-08-07 11:16:56 +08:00
Clemens Wasser
0a73cf1bfc Port CTest
Signed-off-by: Clemens Wasser <clemens.wasser@gmail.com>
2022-07-18 18:58:17 +02:00
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