Skip to content

Commit 9043c7d

Browse files
committed
[testing] Add missing -lm
1 parent 4a058ae commit 9043c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/TypeRoundTrip/round-trip.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: echo "func runAllTests() throws {" >> %t/all-tests.swift
77
// RUN: for module in %S/Inputs/testcases/*.swift; do modname=$(basename $module .swift); %target-build-swift -g -static -emit-module-path %t/$modname.swiftmodule -emit-module -emit-library -module-name $modname -o %t/%target-static-library-name($modname) -I%t -L%t $module -lRoundTrip; echo " print(\"--- $modname\")" >> %t/all-tests.swift; echo " $modname.test()" >> %t/all-tests.swift; echo " print(\"\")" >> %t/all-tests.swift; echo "-l$modname" >> %t/link.txt; done
88
// RUN: echo "}" >> %t/all-tests.swift
9-
// RUN: %target-build-swift -g -I%t -o %t/round-trip %s %t/all-tests.swift -L%t %target-cxx-lib $(cat %t/link.txt) -lRoundTrip -lswiftReflection
9+
// RUN: %target-build-swift -g -I%t -o %t/round-trip %s %t/all-tests.swift -L%t %target-cxx-lib $(cat %t/link.txt) -lm -lRoundTrip -lswiftReflection
1010
// RUN: %target-codesign %t/round-trip
1111
// RUN: %target-run %t/round-trip | %FileCheck %s
1212

0 commit comments

Comments
 (0)