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