File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ Cortex-M3 (ARMv7-M architecture):
44
44
To see all errors use:
45
45
46
46
cargo build -vv
47
-
48
- When building with ` cargo build --all-targets ` (like CLion does) the rustc compiler flags for linking
49
- are not passed and thus the build failes.
50
47
51
48
### Run Windows Demo
52
49
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ fn main() {
11
11
println ! ( "cargo:rerun-if-changed=always" ) ;
12
12
13
13
14
+
14
15
// Build C Code
15
16
cc:: Build :: new ( )
16
17
. file ( "c-lib/add.c" )
@@ -27,7 +28,7 @@ fn main() {
27
28
let port = "MSVC-MingW" ;
28
29
29
30
// For GNU compilation we need the winmm library
30
- println ! ( "cargo:rustc-flags=-lwinmm " ) ;
31
+ println ! ( "cargo:rustc-link-lib=static=winmm " ) ;
31
32
cc:: Build :: new ( )
32
33
//.cpp_link_stdlib("stdc++")
33
34
//.flag("-DprojCOVERAGE_TEST=0")
You can’t perform that action at this time.
0 commit comments