Compiling with Clang on Windows

According to clang, compiling cuda on windows is supported as of 2017 Jan.

However, after patching some buggy headers, the linker declares that it can’t find dl and rt.

After searching my directories for the files, I found out that they don’t actually exist. Where can I find them? Or should I link something else?

I’m using these
clang 4.0.0
mingw 7.1.0
cuda 8.0
windows 10

As a side note, I can compile with MSVC 2015, so I’m assuming my cuda installation is perfectly fine.

error output

clang++ hellocuda.cu  --cuda-path=E:\cuda\development --cuda-gpu-arch=sm_20 -LE:\cuda\development\lib\x64 -lcudart_static -ldl -lrt -std=c++1y -O2 -pedantic -Wall -Wextra -fms-extensions -o program.exe
E:\TDM-GCC\mingw64 7.1.0\mingw64\bin\ld.exe: cannot find -ldl
E:\TDM-GCC\mingw64 7.1.0\mingw64\bin\ld.exe: cannot find -lrt
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
makefile:15: recipe for target 'all' failed
mingw32-make: *** [all] Error 1

hellocuda.cu

#include <cuda_runtime.h>
#include <device_launch_parameters.h>

__global__ void foo() {}

int main() {
    foo<<<1, 1>>>();
}