From 65fc009da74c4e0f6c361861630826631e71b0b9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Wed, 17 May 2023 19:30:28 +0800 Subject: [PATCH] update --- utils.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils.cmake b/utils.cmake index 718a3ed..a357e5f 100644 --- a/utils.cmake +++ b/utils.cmake @@ -654,7 +654,7 @@ function(setup_compile_params) # Enable ANSI escape codes if something emulating them is around (cmd.exe # doesn't understand ANSI escape codes by default). -fansi-escape-codes - /Zc:dllexportInlines- # Do not export inline member functions. This is similar to "-fvisibility-inlines-hidden". + /Zc:dllexportInlines- # Do not export inline member functions. This is similar to "-fvisibility-inlines-hidden". /Zc:char8_t /Zc:sizedDealloc /Zc:strictStrings /Zc:threadSafeInit /Zc:trigraphs /Zc:twoPhase /clang:-mcx16 # Needed by _InterlockedCompareExchange128() from CPP/WinRT. $<$>:/clang:-mbranches-within-32B-boundaries /fp:fast /Gw /Gy /Zc:inline> @@ -685,12 +685,13 @@ function(setup_compile_params) endif() endif() else() - target_compile_options(${__target} PRIVATE -fuse-ld=lld) + #target_compile_options(${__target} PRIVATE -fuse-ld=lld) target_link_options(${__target} PRIVATE -Wl,--color-diagnostics -Wl,-z,keep-text-section-prefix ) if(APPLE) - target_compile_options(${__target} PRIVATE -fobjc-arc -fobjc-call-cxx-cdtors) # http://clang.llvm.org/docs/AutomaticReferenceCounting.html + # TODO: -fobjc-arc (http://clang.llvm.org/docs/AutomaticReferenceCounting.html) + target_compile_options(${__target} PRIVATE -fobjc-call-cxx-cdtors) target_link_options(${__target} PRIVATE $<$>:-Wl,--strict-auto-link>) endif() if(COM_ARGS_SPECTRE)