Skip to content

Commit 095033d

Browse files
unlsycnAvimitin
authored andcommitted
[tests] add -nostartfiles to clang
Signed-off-by: unlsycn <[email protected]>
1 parent 7a628a2 commit 095033d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

tests/builder.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ let
5252
"-march=${march}"
5353
"-mno-relax"
5454
"-static"
55+
"-nostartfiles"
5556
"-mcmodel=medany"
5657
"-fvisibility=hidden"
5758
"-fno-PIC"

tests/iree-mlir/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ let
5959
$CC -c -fPIC $ireeCFlags run.c -o run.o
6060
$CC -c -fPIC $ireeCFlags ${test-c} -o test.o
6161
$CC -c -fPIC $ireeCFlags ${device_embedded_sync-c} -I . -o device_embedded_sync.o
62-
$CC -T${linkerScript} ${t1main} run.o test.o mlir_module_dylib.o device_embedded_sync.o \
62+
$CC -lm -T${linkerScript} ${t1main} run.o test.o mlir_module_dylib.o device_embedded_sync.o \
6363
-liree_vm_impl \
6464
-liree_base_base \
6565
-liree_base_internal_synchronization \

tests/perf/llama/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ build {
5252
buildPhase = ''
5353
runHook preBuild
5454
55-
$CC -T${linkerScript} $csrcs ${t1main} -o $pname.elf
55+
$CC -lm -T${linkerScript} $csrcs ${t1main} -o $pname.elf
5656
5757
runHook postBuild
5858
'';

tests/pytorch/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ let
7676
$CXX -nostdlib -I${./include} -c ${caseName}.cc -o host.o
7777
$CC -T${linkerScript} \
7878
host.o ''${llcArtifacts[@]} ${t1main} \
79+
-lm \
7980
-o $pname.elf
8081
'';
8182

0 commit comments

Comments
 (0)