File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 37
37
gcc --version
38
38
g++ --version
39
39
mingw32-make --version
40
+ touch foo.h
41
+ gcc -E -dM foo.h
40
42
41
43
- name : Set reusable strings
42
44
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ More info: https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run
100
100
if (WIN32 OR WIN64 )
101
101
add_definitions (-DUNICODE=1 )
102
102
add_definitions (-D_UNICODE=1 )
103
+
103
104
if (WIN64 OR CMAKE_SIZEOF_VOID_P EQUAL 8 )
104
105
message ("WIN 64" )
105
106
add_definitions (-DWIN64=1 )
@@ -111,6 +112,12 @@ if (WIN32 OR WIN64)
111
112
else ()
112
113
message ("WIN.. undefined" )
113
114
endif ()
115
+
116
+ if (MINGW )
117
+ add_definitions (-DLIBPLZMA_MINGW=1 )
118
+ message ("MinGW" )
119
+ endif ()
120
+
114
121
endif ()
115
122
116
123
if (MSVC )
@@ -155,11 +162,7 @@ if (MSVC)
155
162
endif ()
156
163
157
164
else ()
158
- if (MINGW )
159
- add_definitions (-DLIBPLZMA_MINGW=1 )
160
- message ("MinGW" )
161
- endif ()
162
-
165
+
163
166
# C with -fPIC
164
167
check_c_compiler_flag ("-fPIC" WITH_FPIC_C )
165
168
if (WITH_FPIC_C )
You can’t perform that action at this time.
0 commit comments