We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ElementaryFunctions
1 parent ac17a00 commit 9b9541cCopy full SHA for 9b9541c
test/AutoDiff/differentiable_attr_cross_module/main.swift
@@ -2,7 +2,8 @@
2
// modules.
3
4
// RUN: %empty-directory(%t)
5
-// RUN: %target-build-swift %S/../Inputs/differentiable_attr_other_module.swift %s -o /dev/null
+// RUN: %target-build-swift %S/../Inputs/differentiable_attr_other_module.swift %s -o /dev/null -lm
6
+// NOTE(TF-892): `-lm` is necessary to prevent linker errors related to `ElementaryFunctions` on Ubuntu.
7
8
@differentiable(wrt: x)
9
func testInitializer(_ x: Float) -> Float {
0 commit comments