Files
brave-core/chromium_src/base/logging.cc
T
Max Karolinskiy bfa1e1dca8 [iOS] Workaround for unknown pragma.
The version of clang included with Xcode (as high as XCode 11.4.1)
doesn't recognize #pragma clang max_tokens_here.

The pragma was added to clang here:
https://reviews.llvm.org/rG739b410f1ff51d507830774320c2db3a80d8610d

The Chromium change that started using it:

https://chromium.googlesource.com/chromium/src/+/b3e433a31194beb54e70acceba9401f47c74fc7d

commit b3e433a31194beb54e70acceba9401f47c74fc7d
Author: Hans Wennborg <hans@chromium.org>
Date:   Tue Apr 21 11:21:40 2020 +0000

    [base] Reduce the size of base/debug/alias.h significantly.

    This is a very widely included header, with
    ca 11,000 transitive includes for the 'chrome' target
    in Linux debug builds.

    Despite providing very basic functionality, its size
    was a whopping 480,000 tokens after pre-processing.
    This change brings the size down to 130 tokens on
    Linux.

    Bug: 242216
2020-07-01 18:12:05 -04:00

16 lines
559 B
C++

/* Copyright (c) 2020 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "base/logging.h"
// Xcode's clang doesn't know about #pragma clang max_tokens_here
#if !defined(ANDROID) && defined(__APPLE__)
#include <TargetConditionals.h>
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
#define NACL_TC_REV 1
#endif
#endif
#include "../../../base/logging.cc"