File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 290290
291291 ghcSrc = ghc . raw-src or ghc . buildGHC . raw-src ;
292292
293- fixPlatformString = x : builtins . replaceStrings [ "-linux-gnu" ] [ "-linux" ] x ;
293+ platformString = p : with p . parsed ; " ${ cpu . name } - ${ vendor . name } - ${ kernel . name } " ;
294294
295295 # Dummy `ghc` that uses the captured output
296296 dummy-ghc = evalPackages . writeTextFile {
@@ -341,10 +341,10 @@ let
341341 then "ArchJavaScript"
342342 else throw "Unknown target arch ${ pkgs . stdenv . targetPlatform . config } "
343343 } ")'
344- echo ',("target platform string","${ fixPlatformString pkgs . stdenv . targetPlatform . config } ")'
345- echo ',("Build platform","${ fixPlatformString pkgs . stdenv . buildPlatform . config } ")'
346- echo ',("Host platform","${ fixPlatformString pkgs . stdenv . hostPlatform . config } ")'
347- echo ',("Target platform","${ fixPlatformString pkgs . stdenv . targetPlatform . config } ")'
344+ echo ',("target platform string","${ platformString pkgs . stdenv . targetPlatform } ")'
345+ echo ',("Build platform","${ platformString pkgs . stdenv . buildPlatform } ")'
346+ echo ',("Host platform","${ platformString pkgs . stdenv . hostPlatform } ")'
347+ echo ',("Target platform","${ platformString pkgs . stdenv . targetPlatform } ")'
348348 echo ']'
349349 ;;
350350 --print-libdir*)
You can’t perform that action at this time.
0 commit comments