File tree 3 files changed +14
-2
lines changed
test/run-make-fulldeps/windows-binary-no-external-deps
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ pub fn opts() -> TargetOptions {
57
57
// binaries to be redistributed without the libgcc_s-dw2-1.dll
58
58
// dependency, but unfortunately break unwinding across DLL
59
59
// boundaries when unwinding across FFI boundaries.
60
- "-lgcc" . to_string( ) ,
61
60
"-lgcc_eh" . to_string( ) ,
62
- "-lpthread" . to_string( ) ,
61
+ "-l:libpthread.a" . to_string( ) ,
62
+ "-lgcc" . to_string( ) ,
63
63
// libpthread depends on libmsvcrt, so we need to link it *again*.
64
64
"-lmsvcrt" . to_string( ) ,
65
65
"-lkernel32" . to_string( ) ,
Original file line number Diff line number Diff line change
1
+ -include ../tools.mk
2
+
3
+ # only-windows
4
+
5
+ PATH =$(SYSTEMROOT ) /system32
6
+
7
+ all :
8
+ $(RUSTC ) hello.rs
9
+ $(TMPDIR ) /hello.exe
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ println ! ( "Hello World!" ) ;
3
+ }
You can’t perform that action at this time.
0 commit comments