mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-24 04:20:13 +00:00
parent
da215f10c9
commit
b49a2caa7c
@ -3,5 +3,4 @@ Language: Cpp
|
|||||||
BasedOnStyle: Google
|
BasedOnStyle: Google
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
SortIncludes: true
|
SortIncludes: true
|
||||||
AllowShortIfStatementsOnASingleLine: true
|
|
||||||
...
|
...
|
||||||
|
@ -188,7 +188,7 @@ function(spvtools_default_compile_options TARGET)
|
|||||||
target_compile_options(${TARGET} PRIVATE ${SPIRV_WARNINGS})
|
target_compile_options(${TARGET} PRIVATE ${SPIRV_WARNINGS})
|
||||||
|
|
||||||
if (${COMPILER_IS_LIKE_GNU})
|
if (${COMPILER_IS_LIKE_GNU})
|
||||||
target_compile_options(${TARGET} PRIVATE -std=c++17 -fno-exceptions)
|
target_compile_options(${TARGET} PRIVATE -std=c++11 -fno-exceptions)
|
||||||
target_compile_options(${TARGET} PRIVATE
|
target_compile_options(${TARGET} PRIVATE
|
||||||
-Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion
|
-Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion
|
||||||
-Wno-sign-conversion)
|
-Wno-sign-conversion)
|
||||||
|
@ -52,9 +52,7 @@ void FeatureManager::RemoveExtension(Extension ext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FeatureManager::AddCapability(SpvCapability cap) {
|
void FeatureManager::AddCapability(SpvCapability cap) {
|
||||||
if (capabilities_.Contains(cao))
|
if (capabilities_.Contains(cap)) return;
|
||||||
// toto
|
|
||||||
return;
|
|
||||||
|
|
||||||
capabilities_.Add(cap);
|
capabilities_.Add(cap);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user