17c804472Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 27c804472Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 37c804472Sopenharmony_ci# you may not use this file except in compliance with the License. 47c804472Sopenharmony_ci# You may obtain a copy of the License at 57c804472Sopenharmony_ci# 67c804472Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 77c804472Sopenharmony_ci# 87c804472Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 97c804472Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 107c804472Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 117c804472Sopenharmony_ci# See the License for the specific language governing permissions and 127c804472Sopenharmony_ci# limitations under the License. 137c804472Sopenharmony_ci 147c804472Sopenharmony_ciSET(CMAKE_SYSTEM_NAME Windows) 157c804472Sopenharmony_ciset(CMAKE_SYSTEM_PROCESSOR x86_64) 167c804472Sopenharmony_ciset(MINGW_ROOT_PATH ${TOOLCHAIN_PATH}) 177c804472Sopenharmony_ciset(CMAKE_C_COMPILER ${TOOLCHAIN_PATH}/bin/clang) 187c804472Sopenharmony_ciset(CMAKE_CXX_COMPILER ${TOOLCHAIN_PATH}/bin/clang++) 197c804472Sopenharmony_ciset(COMPILER_FLAGS "-target x86_64-w64-mingw32 -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld -lunwind -Qunused-arguments -fno-common -fno-strict-aliasing -pipe -Wall") 207c804472Sopenharmony_ciset(CMAKE_C_FLAGS "${COMPILER_FLAGS}") 217c804472Sopenharmony_ciset(CMAKE_CXX_FLAGS "--driver-mode=g++ ${COMPILER_FLAGS}")