mirror of https://github.com/lukechilds/cc-rs.git
Browse Source
Visual Studio 2015, recently releases, includes the Universal CRT, a different flavor than was provided before. The binaries and header files for this library are included in new locations not previously known about by gcc-rs, and this commit adds support for the necessary probing to find these (for now).add-rc-path
Alex Crichton
10 years ago
7 changed files with 118 additions and 2 deletions
@ -0,0 +1,13 @@ |
|||||
|
all: $(OUT_DIR)/msvc.lib $(OUT_DIR)/msvc.exe |
||||
|
|
||||
|
$(OUT_DIR)/msvc.lib: $(OUT_DIR)/msvc.o |
||||
|
lib -nologo -out:$(OUT_DIR)/msvc.lib $(OUT_DIR)/msvc.o |
||||
|
|
||||
|
$(OUT_DIR)/msvc.o: src/msvc.c |
||||
|
$(CC) -nologo -c -Fo:$@ src/msvc.c |
||||
|
|
||||
|
$(OUT_DIR)/msvc.exe: $(OUT_DIR)/msvc2.o |
||||
|
$(CC) -nologo -Fo:$@ $(OUT_DIR)/msvc2.o |
||||
|
|
||||
|
$(OUT_DIR)/msvc2.o: src/msvc.c |
||||
|
$(CC) -nologo -c -Fo:$@ src/msvc.c -DMAIN |
@ -0,0 +1,7 @@ |
|||||
|
#include <windows.h> |
||||
|
|
||||
|
void msvc() {} |
||||
|
|
||||
|
#ifdef MAIN |
||||
|
int main() {} |
||||
|
#endif |
Loading…
Reference in new issue