This will fix with issues like this [1]:
Aug 12 09:58:44 '/usr/bin/cmake' '--build' '/build/build_docker/native' '--target' 'pre_compressor'
Aug 12 09:58:44 sccache: error: Server startup failed: cache storage failed to read: Unexpected (temporary) at stat
Aug 12 09:58:45 ninja: build stopped: subcommand failed.
Aug 12 09:58:45 -- Configuring done (77.7s)
Aug 12 09:58:47 -- Generating done (1.8s)
Aug 12 09:58:47 -- Build files have been written to: /build/build_docker
So as you can see even if ninja fails it still wrote build files, while
it should fail.
[1]: https://s3.amazonaws.com/clickhouse-test-reports/64955/0af41e32a5822d25ac3760f1ebb2313557474701/builds/report.html
[2]: 0af41e32a5/binary_darwin_aarch64/build_log.log
Note, COMMAND_ERROR_IS_FATAL is 3.19+, and the requirement for now is
3.20
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Make ClickHouse compilable and runnable on loongarch64
So far only basic functionality was tested (on real hw),
clickhouse server runs, exceptions works, client works,
simple tests works.
Before this patch:
cmake -DCMAKE_C_COMPILER=foo .. # will use foo
cmake .. # will use clang
After:
cmake -DCMAKE_C_COMPILER=foo .. # will use foo
cmake .. # will use foo
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
By using FORCE user will not be able to overwrite them.
It is true for CMAKE_GENERATOR, but FORCE for CMAKE_TOOLCHAIN_FILE is
no-op, since there is a check for CMAKE_TOOLCHAIN_FILE is not set
before.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>