2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2015 Blender Authors
|
2023-06-14 22:49:59 +10:00
|
|
|
#
|
2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2020-02-25 13:05:09 +01:00
|
|
|
|
|
|
|
|
set(INC
|
|
|
|
|
.
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(INC_SYS
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(SRC
|
|
|
|
|
libc_compat.c
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(LIB
|
|
|
|
|
)
|
|
|
|
|
|
2020-02-27 12:46:37 +01:00
|
|
|
add_c_flag(-ffast-math)
|
|
|
|
|
|
2020-02-25 13:05:09 +01:00
|
|
|
blender_add_lib(bf_intern_libc_compat "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
2022-09-13 10:34:41 +02:00
|
|
|
|
|
|
|
|
if(WITH_LIBC_MALLOC_HOOK_WORKAROUND)
|
|
|
|
|
target_compile_definitions(bf_intern_libc_compat
|
|
|
|
|
PRIVATE WITH_LIBC_MALLOC_HOOK_WORKAROUND
|
|
|
|
|
)
|
|
|
|
|
endif()
|