Skip to content

Commit

Permalink
[tests] enable patchElf and strip
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Apr 9, 2024
1 parent ebd7392 commit 42089ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions nix/t1/testcases/make-asm-case.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ stdenv.mkDerivation (rec {
"-fvisibility=hidden"
"-nostdlib"
"-fno-PIC"
"-T" "${linkerScript}"
"-T"
"${linkerScript}"
];

nativeBuildInputs = [
Expand Down Expand Up @@ -58,6 +59,4 @@ stdenv.mkDerivation (rec {
'';

meta.description = "Test case '${caseName}', written in assembly.";

dontFixup = true;
} // inputs)
4 changes: 1 addition & 3 deletions nix/t1/testcases/make-codegen-case.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stdenv.mkDerivation (rec {
"-fno-PIC"
"-I${../../../tests/codegen/override_include}"
"-I${rvv-codegen}/include"
]; # handle linkerScript manually in buildPhase
]; # handle linkerScript manually in buildPhase

configurePhase = ''
export vLen=$(jq --exit-status --raw-output ".parameter.vLen" ${elaborateConfigJson})
Expand Down Expand Up @@ -81,6 +81,4 @@ stdenv.mkDerivation (rec {
'';

meta.description = "Test case '${caseNameEscaped}', generated by [rvv-codegen](https://github.com/ksco/riscv-vector-tests).";

dontFixup = true;
} // inputs)
2 changes: 0 additions & 2 deletions nix/t1/testcases/make-intrinsic-case.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,4 @@ stdenv.mkDerivation (rec {
'';

meta.description = "Test case '${caseName}', written in C intrinsic.";

dontFixup = true;
} // inputs)
5 changes: 2 additions & 3 deletions nix/t1/testcases/make-mlir-case.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ stdenv.mkDerivation
"-fvisibility=hidden"
"-nostdlib"
"-fno-PIC"
"-T" "${linkerScript}"
"-T"
"${linkerScript}"
];

# Set final compile and link step at postBuild, so that user can easily override them
Expand Down Expand Up @@ -96,6 +97,4 @@ stdenv.mkDerivation
'';

meta.description = "Test case '${caseName}', written in MLIR.";

dontFixup = true;
} // inputs)

0 comments on commit 42089ed

Please sign in to comment.