This commit is contained in:
Minmin Gong 2018-11-19 17:42:47 -08:00
Родитель b514328d9e
Коммит ea1e3842e0
2 изменённых файлов: 31 добавлений и 27 удалений

Просмотреть файл

@ -34,20 +34,23 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${SC_BUILD_DIR}/Lib)
if((CMAKE_C_COMPILER_ID MATCHES GNU) OR (CMAKE_C_COMPILER_ID MATCHES Clang))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
endif()
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
if (CMAKE_C_COMPILER_ID MATCHES Clang)
foreach(flagVar
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
set(${flagVar} "${${flagVar}} -fms-extensions -Wno-language-extension-token")
endforeach()
endif()
set(Python_ADDITIONAL_VERSIONS 3.5 3.6 3.7)
set(Python_ADDITIONAL_VERSIONS 3.5 3.6 3.7 3.8)
# DirectXShaderCompiler requires it
add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
# Handle a compiling issue of SPIR-V
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
if(CMAKE_C_COMPILER_ID MATCHES Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
foreach(flagVar
CMAKE_SHARED_LINKER_FLAGS_RELEASE CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL

Просмотреть файл

@ -150,30 +150,6 @@ jobs:
steps:
- template: CI/AzurePipelines/ContinuousBuild.yml
- job: Linux_clang6
pool:
vmImage: Ubuntu-16.04
variables:
compiler: clang6
combination: 'linux-$(compiler)-$(platform)-$(configuration)'
buildFolder: 'Build/ninja-$(combination)'
installCommand: |
sudo add-apt-repository ppa:llvm-toolchain-xenial-6.0/main
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install clang-6.0 libstdc++-6-dev lld-6.0 ninja-build python3
testCommand: './$(buildFolder)/Bin/ShaderConductorTest'
artifactBinaries: |
Bin/ShaderConductorCmd
Lib/libdxcompiler.so
Lib/libShaderConductor.so
CC: clang-6.0
CXX: clang++-6.0
steps:
- template: CI/AzurePipelines/ContinuousBuild.yml
- job: Linux_clang7
pool:
vmImage: Ubuntu-16.04
@ -187,7 +163,7 @@ jobs:
sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install clang-7 libstdc++-7-dev lld-7 ninja-build python3
sudo apt-get install clang-7 libc++-7-dev libc++abi-7-dev lld-7 ninja-build python3
testCommand: './$(buildFolder)/Bin/ShaderConductorTest'
artifactBinaries: |
Bin/ShaderConductorCmd
@ -199,6 +175,31 @@ jobs:
steps:
- template: CI/AzurePipelines/ContinuousBuild.yml
- job: Linux_clang8
pool:
vmImage: Ubuntu-16.04
variables:
compiler: clang8
combination: 'linux-$(compiler)-$(platform)-$(configuration)'
buildFolder: 'Build/ninja-$(combination)'
installCommand: |
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main"
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install clang-8 libc++-8-dev libc++abi-8-dev lld-8 ninja-build python3
testCommand: './$(buildFolder)/Bin/ShaderConductorTest'
artifactBinaries: |
Bin/ShaderConductorCmd
Lib/libdxcompiler.so
Lib/libShaderConductor.so
CC: clang-8
CXX: clang++-8
steps:
- template: CI/AzurePipelines/ContinuousBuild.yml
- job: macOS_10_clang
pool:
vmImage: macOS 10.13