镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

libvmaf: support clang-cl builds - #1708

Open
StormBytePP wants to merge 1 commit into
Netflix:masterfrom
StormBytePP:fix_clang-cl
Open

StormBytePP wants to merge 1 commit into
Netflix:masterfrom
StormBytePP:fix_clang-cl

Conversation

@StormBytePP

Copy link
Copy Markdown
Contributor

Summary

Following the merge of #1477, which made MSVC builds a first-class citizen, this change complements Windows compilation by adding support for clang-cl.

Meson identifies clang-cl separately from msvc, even though it uses the Windows SDK and MSVC-compatible CRT. This change therefore:

  • Defines _USE_MATH_DEFINES for clang-cl so Windows math constants such as M_PI are available.
  • Defines _CRT_SECURE_NO_WARNINGS to avoid CRT deprecation warnings for functions such as strncpy and strcpy.
  • Excludes clang-cl from compiler flags that are not appropriate for this toolchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant