From be3b54f008836a7bbe3da2a0f6c9a34fd54047d5 Mon Sep 17 00:00:00 2001 From: Marko Semet Date: Sat, 6 Nov 2021 23:21:23 +0100 Subject: [PATCH] Add LLVM --- .editorconfig | 3 ++ .../com.vscodium.codium.tool.LLVM.yaml | 29 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 com.vscodium.codium/tool.LLVM/com.vscodium.codium.tool.LLVM.yaml diff --git a/.editorconfig b/.editorconfig index 4d2c2b7..1927b2c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,6 @@ insert_final_newline = true [*.bst] indent_style = space + +[*.yaml] +indent_style = space diff --git a/com.vscodium.codium/tool.LLVM/com.vscodium.codium.tool.LLVM.yaml b/com.vscodium.codium/tool.LLVM/com.vscodium.codium.tool.LLVM.yaml new file mode 100644 index 0000000..06c13f0 --- /dev/null +++ b/com.vscodium.codium/tool.LLVM/com.vscodium.codium.tool.LLVM.yaml @@ -0,0 +1,29 @@ +id: "com.vscodium.codium.tool.LLVM" +build-extension: true +branch: "21.08" + +runtime: com.vscodium.codium +sdk: org.freedesktop.Sdk//21.08 +runtime-version: stable + +separate-locales: false +build-options: + prefix: /app/tools/LLVM + env: + - SOURCE_DATE_EPOCH=1 + +modules: + - name: llvm + sources: + - type: archive + url: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-13.0.0.tar.gz + sha256: a1131358f1f9f819df73fa6bff505f2c49d176e9eef0a3aedd1fdbce3b4630e8 + buildsystem: cmake-ninja + config-opts: + - -DCMAKE_BUILD_TYPE=MinSizeRel + - -DCMAKE_INSTALL_PREFIX=/app/tools/LLVM + - -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;flang;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;polly;pstl" + build-options: + cflags: -flto -Os + cxxflags: -flto -Os + ldflags: -flto -Os