Skip to content

Commit 26576f3

Browse files
committed
Support debug build
1 parent b0ba9e2 commit 26576f3

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

src/base/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ component("base") {
21762176
"process/set_process_title_linux.h",
21772177
"system/sys_info_linux.cc",
21782178
]
2179-
if (!is_cronet_build) {
2179+
if (!is_android) {
21802180
# These dependencies are not required on Android.
21812181
sources += [
21822182
"nix/mime_util_xdg.cc",

src/base/trace_event/trace_event_stub.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -390,19 +390,19 @@ class TracedArray;
390390
class TracedDictionary;
391391
class EventContext;
392392

393-
class StaticString {
393+
class BASE_EXPORT StaticString {
394394
public:
395395
template <typename T>
396396
StaticString(T) {}
397397
};
398398

399-
class DynamicString {
399+
class BASE_EXPORT DynamicString {
400400
public:
401401
template <typename T>
402402
explicit DynamicString(T) {}
403403
};
404404

405-
class TracedValue {
405+
class BASE_EXPORT TracedValue {
406406
public:
407407
void WriteInt64(int64_t) && {}
408408
void WriteUInt64(uint64_t) && {}
@@ -417,7 +417,7 @@ class TracedValue {
417417
TracedArray WriteArray() &&;
418418
};
419419

420-
class TracedDictionary {
420+
class BASE_EXPORT TracedDictionary {
421421
public:
422422
TracedValue AddItem(StaticString) { return TracedValue(); }
423423
TracedValue AddItem(DynamicString) { return TracedValue(); }
@@ -433,7 +433,7 @@ class TracedDictionary {
433433
TracedArray AddArray(DynamicString);
434434
};
435435

436-
class TracedArray {
436+
class BASE_EXPORT TracedArray {
437437
public:
438438
TracedValue AppendItem() { return TracedValue(); }
439439

@@ -447,16 +447,16 @@ class TracedArray {
447447
template <class T>
448448
void WriteIntoTracedValue(TracedValue, T&&) {}
449449

450-
struct Track {
450+
struct BASE_EXPORT Track {
451451
explicit Track(uint64_t id) {}
452452
};
453453

454-
struct NamedTrack {
454+
struct BASE_EXPORT NamedTrack {
455455
template <class T>
456456
explicit NamedTrack(T name, uint64_t id = 0, Track parent = Track{0}) {}
457457
};
458458

459-
struct Flow {
459+
struct BASE_EXPORT Flow {
460460
static inline Flow ProcessScoped(uint64_t flow_id) { return Flow(); }
461461
static inline Flow FromPointer(void* ptr) { return Flow(); }
462462
static inline Flow Global(uint64_t flow_id) { return Flow(); }

src/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mkdir -p "$TMPDIR"
88
if [ "$1" = debug ]; then
99
out=out/Debug
1010
flags="
11+
chrome_pgo_phase=0
1112
is_debug=true
1213
is_component_build=true"
1314
else
@@ -16,6 +17,7 @@ else
1617
is_official_build=true
1718
exclude_unwind_tables=true
1819
enable_resource_allowlist_generation=false
20+
chrome_pgo_phase=2
1921
symbol_level=0"
2022
fi
2123

@@ -51,7 +53,6 @@ flags="$flags"'
5153
treat_warnings_as_errors=false
5254
5355
is_cronet_build=true
54-
chrome_pgo_phase=2
5556
5657
enable_base_tracing=false
5758
use_udev=false

src/net/socket/client_socket_pool_manager.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "build/build_config.h"
1515
#include "net/base/features.h"
1616
#include "net/base/load_flags.h"
17+
#include "net/base/net_export.h"
1718
#include "net/base/proxy_chain.h"
1819
#include "net/base/proxy_server.h"
1920
#include "net/dns/public/secure_dns_policy.h"
@@ -207,7 +208,7 @@ base::TimeDelta ClientSocketPoolManager::unused_idle_socket_timeout(
207208
return base::Seconds(kPreconnectIntervalSec);
208209
}
209210

210-
int InitSocketHandleForHttpRequest(
211+
int NET_EXPORT InitSocketHandleForHttpRequest(
211212
url::SchemeHostPort endpoint,
212213
int request_load_flags,
213214
RequestPriority request_priority,

0 commit comments

Comments
 (0)