Skip to content

Commit

Permalink
[om] fix nix script
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Jun 10, 2024
1 parent a287d1f commit 2092d79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/t1/om.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

let
omReaderArgs = lib.filter (s: s != "") [
"run"
"--mlirbc-file"
"${mlirbc}/${mlirbc.elaborateTarget}-${mlirbc.elaborateConfig}.mlirbc"
"${mlirbc}/${mlirbc.elaborateTarget}-${mlirbc.elaborateConfig}-lowered.mlirbc"
"--dump-methods"
];
in
stdenvNoCC.mkDerivation {
Expand All @@ -18,7 +20,7 @@ stdenvNoCC.mkDerivation {
nativeBuildInputs = [ circt omreader ];

buildCommand = ''
omreader ${lib.escapeShellArgs omReaderArgs}
omreader ${lib.escapeShellArgs omReaderArgs} > $out
'';

meta.description = "Call CLI dumps OM properties from MLIR bytecodes";
Expand Down

0 comments on commit 2092d79

Please sign in to comment.