We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f68e1 commit c519125Copy full SHA for c519125
Modules/Compiler/XC8-C.cmake
@@ -42,3 +42,18 @@ string(APPEND CMAKE_C_LINK_EXECUTABLE
42
" <OBJECTS> <LINK_LIBRARIES>"
43
" -o<TARGET>"
44
)
45
+
46
+set(CMAKE_STATIC_LIBRARY_SUFFIX_C ".lpp")
47
48
+set(CMAKE_C_CREATE_STATIC_LIBRARY)
49
+string(APPEND CMAKE_C_CREATE_STATIC_LIBRARY
50
+ "<CMAKE_C_COMPILER> <LINK_FLAGS>"
51
+ # don't output the copyright notice on every invocation
52
+ "-Q"
53
+ # use the configured license mode and fail if it's not available
54
+ " --mode=${MICROCHIP_XC8_MODE} --nofallback"
55
+ # build for the configured MCU model
56
+ " --chip=${MICROCHIP_MCU_MODEL}"
57
+ " <OBJECTS> <LINK_LIBRARIES>"
58
+ " --output=lpp -o<TARGET>"
59
+)
0 commit comments