File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5252 "-march=${ march } "
5353 "-mno-relax"
5454 "-static"
55+ "-nostartfiles"
5556 "-mcmodel=medany"
5657 "-fvisibility=hidden"
5758 "-fno-PIC"
Original file line number Diff line number Diff line change 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 \
Original file line number Diff line number Diff 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 '' ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments