File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,13 @@ if(LIBC_TARGET_OS STREQUAL "baremetal")
165
165
set (LIBC_TARGET_OS_IS_BAREMETAL TRUE )
166
166
elseif (LIBC_TARGET_OS STREQUAL "linux" )
167
167
set (LIBC_TARGET_OS_IS_LINUX TRUE )
168
- elseif (LIBC_TARGET_OS STREQUAL "poky" )
168
+ elseif (LIBC_TARGET_OS STREQUAL "poky" OR LIBC_TARGET_OS STREQUAL "suse" )
169
169
# poky are ustom Linux-base systems created by yocto. Since these are Linux
170
170
# images, we change the LIBC_TARGET_OS to linux. This define is used to
171
171
# include the right directories during compilation.
172
+ #
173
+ # openSUSE uses different triple format which causes LIBC_TARGET_OS to be
174
+ # computed as "suse" instead of "linux".
172
175
set (LIBC_TARGET_OS_IS_LINUX TRUE )
173
176
set (LIBC_TARGET_OS "linux" )
174
177
elseif (LIBC_TARGET_OS STREQUAL "darwin" )
You can’t perform that action at this time.
0 commit comments