julec: 0.1.3 -> 0.1.5 (#391345)

authored by philiptaron.tngl.sh and committed by GitHub 6bd7ba77 0054e27a

+21 -17
+21 -17
pkgs/by-name/ju/julec/package.nix
··· 1 { 2 lib, 3 - stdenv, 4 fetchFromGitHub, 5 }: 6 7 let 8 irFile = 9 - if stdenv.hostPlatform.system == "x86_64-linux" then 10 "linux-amd64.cpp" 11 - else if stdenv.hostPlatform.system == "aarch64-linux" then 12 "linux-arm64.cpp" 13 - else if stdenv.hostPlatform.system == "i686-linux" then 14 "linux-i386.cpp" 15 - else if stdenv.hostPlatform.system == "x86_64-darwin" then 16 "darwin-amd64.cpp" 17 - else if stdenv.hostPlatform.system == "aarch64-darwin" then 18 "darwin-arm64.cpp" 19 else 20 - throw "Unsupported platform: ${stdenv.hostPlatform.system}"; 21 in 22 - stdenv.mkDerivation (finalAttrs: { 23 pname = "julec"; 24 - version = "0.1.3"; 25 26 src = fetchFromGitHub { 27 owner = "julelang"; 28 repo = "jule"; 29 tag = "jule${finalAttrs.version}"; 30 name = "jule-${finalAttrs.version}"; 31 - hash = "sha256-hFWoGeTmfXIPcICWXa5W36QDOk3yB7faORxFaM9shcQ="; 32 }; 33 34 irSrc = fetchFromGitHub { 35 owner = "julelang"; 36 repo = "julec-ir"; 37 # revision determined by the upstream commit hash in julec-ir/README.md 38 - rev = "a274782922e4275c4a036d63acffd3369dbc382f"; 39 name = "jule-ir-${finalAttrs.version}"; 40 - hash = "sha256-TXMSXTGTzZntPUhT6QTmn3nD2k855ZoAW9aQWyhrE8s="; 41 }; 42 43 dontConfigure = true; ··· 58 buildPhase = '' 59 runHook preBuild 60 61 - echo "Building ${finalAttrs.meta.mainProgram} v${finalAttrs.version} for ${stdenv.hostPlatform.system}..." 62 mkdir -p bin 63 - ${stdenv.cc.targetPrefix}c++ ir.cpp \ 64 --std=c++17 \ 65 -Wno-everything \ 66 - -O3 \ 67 - -flto \ 68 -DNDEBUG \ 69 -fomit-frame-pointer \ 70 - -o "bin/${finalAttrs.meta.mainProgram}" 71 72 runHook postBuild 73 '';
··· 1 { 2 lib, 3 + clangStdenv, 4 fetchFromGitHub, 5 }: 6 7 let 8 irFile = 9 + if clangStdenv.hostPlatform.system == "x86_64-linux" then 10 "linux-amd64.cpp" 11 + else if clangStdenv.hostPlatform.system == "aarch64-linux" then 12 "linux-arm64.cpp" 13 + else if clangStdenv.hostPlatform.system == "i686-linux" then 14 "linux-i386.cpp" 15 + else if clangStdenv.hostPlatform.system == "x86_64-darwin" then 16 "darwin-amd64.cpp" 17 + else if clangStdenv.hostPlatform.system == "aarch64-darwin" then 18 "darwin-arm64.cpp" 19 else 20 + throw "Unsupported platform: ${clangStdenv.hostPlatform.system}"; 21 in 22 + clangStdenv.mkDerivation (finalAttrs: { 23 pname = "julec"; 24 + version = "0.1.5"; 25 26 src = fetchFromGitHub { 27 owner = "julelang"; 28 repo = "jule"; 29 tag = "jule${finalAttrs.version}"; 30 name = "jule-${finalAttrs.version}"; 31 + hash = "sha256-gFlca9XdRNv2CI3jfMiWejcmGGzabP0VGs4vlvFs72o="; 32 }; 33 34 irSrc = fetchFromGitHub { 35 owner = "julelang"; 36 repo = "julec-ir"; 37 # revision determined by the upstream commit hash in julec-ir/README.md 38 + rev = "4a3bf4fc84b53aa607855df6635d95d3e310f7ad"; 39 name = "jule-ir-${finalAttrs.version}"; 40 + hash = "sha256-Wl5AYRGYcQpj/R9nynxNC5r1HK1EmImwkLokdZfp9sE="; 41 }; 42 43 dontConfigure = true; ··· 58 buildPhase = '' 59 runHook preBuild 60 61 + echo "Building ${finalAttrs.meta.mainProgram}-bootstrap v${finalAttrs.version} for ${clangStdenv.hostPlatform.system}..." 62 mkdir -p bin 63 + ${clangStdenv.cc.targetPrefix}c++ ir.cpp \ 64 --std=c++17 \ 65 -Wno-everything \ 66 + -fwrapv \ 67 + -ffloat-store \ 68 -DNDEBUG \ 69 -fomit-frame-pointer \ 70 + -fno-strict-aliasing \ 71 + -o "bin/${finalAttrs.meta.mainProgram}-bootstrap" 72 + 73 + echo "Building ${finalAttrs.meta.mainProgram} v${finalAttrs.version} for ${clangStdenv.hostPlatform.system}..." 74 + bin/${finalAttrs.meta.mainProgram}-bootstrap --opt L2 -p -o "bin/${finalAttrs.meta.mainProgram}" "src/${finalAttrs.meta.mainProgram}" 75 76 runHook postBuild 77 '';