Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 851
    • Issues 851
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 49
    • Merge requests 49
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2004

Some improvements to clang-cl builds

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Chun-wei Fan requested to merge clang-cl-improvements into master Mar 20, 2021
  • Overview 16
  • Commits 4
  • Pipelines 6
  • Changes 4

Hi,

This attempts to address two issues with clang-cl builds:

  • Define _CRT_[SECURE|NONSTDC]_NO_WARNINGS in msvc_recommended_pragmas.h for clang-cl, and force-include it in clang-cl builds of GLib as well. (issue #2357 (closed)).

  • Just use _Static_assert() for CLang builds, since it supported that for a long time. (issue #2338 (closed)).

@amezin, can you see whether things work better for you, since I am certainly no clang-cl expert and I did the initial and experiemental clang-cl support from a Visual Studio point-of-view.

With blessings, thank you!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: clang-cl-improvements