Skip to content

Commit bc27d9c

Browse files
committed
Adds a work-around to pass the module tests.
1 parent bb43f5a commit bc27d9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libcxx/utils/libcxx/test/modules.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@
7676
# This declaration is in the ostream header.
7777
ExtraDeclarations["system_error"] = ["std::operator<<"]
7878

79+
# TODO MODULES avoid this work-around
80+
# This is a work-around for the special math functions. They are declared in
81+
# __math/special_functions.h. Adding this as an ExtraHeader works for the std
82+
# module. However these functions are special; they are not available in the
83+
# global namespace.
84+
ExtraDeclarations["cmath"] = ["std::hermite", "std::hermitef", "std::hermitel"]
85+
7986
### ExtraHeader
8087

8188
# Adds extra headers file to scan

0 commit comments

Comments
 (0)