Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using ninja as the cmake build backend #56

Merged
merged 1 commit into from Jun 14, 2018

Conversation

WebDrake
Copy link
Contributor

This should help deal with the LDC 1.9.0 build issues that are seeing 'file truncated' errors crop up (probably because of race conditions between make targets). Since the snapcraft cmake plugin only supports the make backend, we have to create a manual override-build script to run cmake, ninja and ctest.

This should help deal with the LDC 1.9.0 build issues that are seeing
'file truncated' errors crop up (probably because of race conditions
between make targets).  Since the snapcraft cmake plugin only supports
the `make` backend, we have to create a manual `override-build` script
to run `cmake`, `ninja` and `ctest`.
@WebDrake
Copy link
Contributor Author

One minor fix to a typo, and this should be good to go:

diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 3813c5d..0909370 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -39,7 +39,7 @@ parts:
         -DD_FLAGS='-w;-flto=thin' \
         -DCMAKE_BUILD_TYPE=Release \
         -DCMAKE_C_FLAGS_RELEASE='-O3 -DNDEBUG -Wa,-mrelax-relocations=no' \
-        -DLLVM_ROOT_DIR=../../llvm/install
+        -DLLVM_ROOT_DIR=../../llvm/install \
         -DBUILD_LTO_LIBS=ON \
         -DLDC_INSTALL_LTOPLUGIN=ON \
         -DMULTILIB=ON \

@WebDrake WebDrake merged commit b54b699 into ldc-developers:1.9 Jun 14, 2018
@WebDrake WebDrake deleted the ninja-build branch June 14, 2018 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant