mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 19:50:05 +00:00
d8759a140b
This commit changes the way bazel chooses which version to build. Before, we had a COPT set to -std=c++17, which is analogous to the cmake way. However, googletest decided to follow abseil, meaning this is *not* recommended at all, and causes a mixed-standard build. From https://github.com/abseil/abseil-cpp/blob/master/FAQ.md#how-to-i-set-the-c-dialect-used-to-build-abseil we have 3 options to define the standard. Using a bazelrc is what I believe to be the simplest, as it "fixes" the repo standard. Signed-off-by: Nathan Gauër <brioche@google.com>
35 lines
970 B
Python
35 lines
970 B
Python
use_relative_paths = True
|
|
|
|
vars = {
|
|
'github': 'https://github.com',
|
|
|
|
'effcee_revision': 'c7b4db79f340f7a9981e8a484f6d5785e24242d1',
|
|
|
|
'googletest_revision': 'ebedaa18c7cafa15f06ab3d814440e510fad9559',
|
|
|
|
# Use protobufs before they gained the dependency on abseil
|
|
'protobuf_revision': 'v3.13.0.1',
|
|
|
|
're2_revision': 'b025c6a3ae05995660e3b882eb3277f4399ced1a',
|
|
'spirv_headers_revision': 'aa331ab0ffcb3a67021caa1a0c1c9017712f2f31',
|
|
}
|
|
|
|
deps = {
|
|
'external/effcee':
|
|
Var('github') + '/google/effcee.git@' + Var('effcee_revision'),
|
|
|
|
'external/googletest':
|
|
Var('github') + '/google/googletest.git@' + Var('googletest_revision'),
|
|
|
|
'external/protobuf':
|
|
Var('github') + '/protocolbuffers/protobuf.git@' + Var('protobuf_revision'),
|
|
|
|
'external/re2':
|
|
Var('github') + '/google/re2.git@' + Var('re2_revision'),
|
|
|
|
'external/spirv-headers':
|
|
Var('github') + '/KhronosGroup/SPIRV-Headers.git@' +
|
|
Var('spirv_headers_revision'),
|
|
}
|
|
|