This commit is contained in:
ArthurSonzogni 2025-04-26 01:14:09 +02:00
parent 44d25564ee
commit 2270fe628f
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C
2 changed files with 21 additions and 16 deletions

View File

@ -23,11 +23,13 @@ jobs:
- os: ubuntu-latest
compiler: llvm
- os: macos-latest
compiler: llvm
# Failing
#- os: macos-latest
#compiler: llvm
- os: macos-latest
compiler: gcc
# Failing
#- os: macos-latest
#compiler: gcc
- os: windows-latest
compiler: cl

View File

@ -21,19 +21,22 @@ def cpp20():
})
def msvc_copts():
MSVC_COPTS = [
# Force Microsoft Visual Studio to decode sources files in UTF-8.
"/utf-8",
# Force Microsoft Visual Studio to interpret the source files as
# Unicode.
"/DUNICODE",
"/D_UNICODE",
# Fallback for Microsoft Terminal.
"/DFTXUI_MICROSOFT_TERMINAL_FALLBACK",
]
return select({
"@rules_cc//cc/compiler:msvc-cl": [
# Force Microsoft Visual Studio to decode sources files in UTF-8.
"/utf-8",
# Force Microsoft Visual Studio to interpret the source files as
# Unicode.
"/DUNICODE",
"/D_UNICODE",
# Fallback for Microsoft Terminal.
"/DFTXUI_MICROSOFT_TERMINAL_FALLBACK",
],
"@rules_cc//cc/compiler:msvc-cl": MSVC_COPTS,
"@rules_cc//cc/compiler:clang-cl": MSVC_COPTS,
"//conditions:default": [],
})