Skip to content

Commit b09d379

Browse files
author
Michal Klocek
committed
Fix build with no extensions on mac
With following change we no longer can compile with no extensions: https://chromium-review.googlesource.com/c/chromium/src/+/2272030 Remove gn assertion in favor of the condition. Change-Id: I008e38a06db8397cd6632e559062fcf8aea614aa Reviewed-by: Allan Sandfeld Jensen <[email protected]>
1 parent d13920f commit b09d379

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

chromium/chrome/common/BUILD.gn

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,16 +330,19 @@ static_library("common") {
330330
}
331331

332332
if (is_mac) {
333-
assert(enable_extensions)
334333
sources += [
335-
"extensions/image_writer/image_writer_util_mac.cc",
336-
"extensions/image_writer/image_writer_util_mac.h",
337334
"mac/launchd.h",
338335
"mac/launchd.mm",
339336
"mac/service_management.h",
340337
"mac/service_management.mm",
341338
"multi_process_lock_mac.cc",
342339
]
340+
if (enable_extensions) {
341+
sources += [
342+
"extensions/image_writer/image_writer_util_mac.cc",
343+
"extensions/image_writer/image_writer_util_mac.h",
344+
]
345+
}
343346
public_deps += [ ":app_mode_app_support" ]
344347
}
345348

0 commit comments

Comments
 (0)