pull/494/merge
Andrew Brown 3 months ago committed by GitHub
commit 0c7f44015d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -106,10 +106,14 @@ add_custom_target(compiler-rt-post-build
COMMAND ${CMAKE_COMMAND} -E copy_directory
${clang_resource_dir}/include ${wasi_resource_dir}/include
# Copy the `lib/wasi` folder to `libc/wasi{p1,p2}` to ensure that those
# OS-strings also work for looking up the compiler-rt.a file.
# Copy the `lib/wasi` folder to `libc/wasi{p1,p2}{-threads}?` to ensure that
# those OS-strings also work for looking up the compiler-rt.a file.
COMMAND ${CMAKE_COMMAND} -E copy_directory
${wasi_resource_dir}/lib/wasi ${wasi_resource_dir}/lib/wasi-threads
COMMAND ${CMAKE_COMMAND} -E copy_directory
${wasi_resource_dir}/lib/wasi ${wasi_resource_dir}/lib/wasip1
COMMAND ${CMAKE_COMMAND} -E copy_directory
${wasi_resource_dir}/lib/wasi ${wasi_resource_dir}/lib/wasip1-threads
COMMAND ${CMAKE_COMMAND} -E copy_directory
${wasi_resource_dir}/lib/wasi ${wasi_resource_dir}/lib/wasip2

@ -0,0 +1,10 @@
// Primarily check that `libclang_rt.builtins-wasm32.a` functions are present
// and work as expected on all tested targets, not the builtin functionality.
#include <assert.h>
int main() {
double f = __floatdidf(0);
assert(f == 0.0);
return 0;
}
Loading…
Cancel
Save