| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 66131c067aface76bafc756da5bcec17aef0498b..c101d75f44a60f0ae38b2e7779a4d27cfa9a9533 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -501,6 +501,16 @@ config("compiler") {
|
| }
|
| }
|
|
|
| +# This is separate from :compiler (and not even a sub-config there)
|
| +# so that some targets can remove it from the list with:
|
| +# configs -= [ "//build/config/compiler:pthread" ]
|
| +config("pthread") {
|
| + if (is_linux) {
|
| + cflags = [ "-pthread" ]
|
| + ldflags = [ "-pthread" ]
|
| + }
|
| +}
|
| +
|
| # This provides the basic options to select the target CPU and ABI.
|
| # It is factored out of "compiler" so that special cases can use this
|
| # without using everything that "compiler" brings in. Options that
|
|
|