Skip to content

Commit

Permalink
Move source-location logic to GN configuration
Browse files Browse the repository at this point in the history
Issue: 152473909
Issue: 256660693
Reviewed-on: #2972
  • Loading branch information
dahlstrom-g committed Apr 18, 2024
2 parents 324b566 + d54f51e commit 28a3998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions third_party/crashpad/crashpad/third_party/lss/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import("../../build/crashpad_buildconfig.gni")
config("lss_config") {
if (crashpad_is_in_chromium) {
defines = [ "CRASHPAD_LSS_SOURCE_EXTERNAL" ]
} else if (crashpad_is_in_starboard || crashpad_is_in_native_target_build) {
defines = [ "CRASHPAD_LSS_SOURCE_EXTERNAL" ]
} else {
defines = [ "CRASHPAD_LSS_SOURCE_EMBEDDED" ]
}
Expand Down
4 changes: 1 addition & 3 deletions third_party/crashpad/crashpad/third_party/lss/lss.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#ifndef CRASHPAD_THIRD_PARTY_LSS_LSS_H_
#define CRASHPAD_THIRD_PARTY_LSS_LSS_H_

#if defined(STARBOARD) || NATIVE_TARGET_BUILD
#include "third_party/lss/linux_syscall_support.h"
#elif defined(CRASHPAD_LSS_SOURCE_EXTERNAL)
#if defined(CRASHPAD_LSS_SOURCE_EXTERNAL)
#include "third_party/lss/linux_syscall_support.h"
#elif defined(CRASHPAD_LSS_SOURCE_EMBEDDED)
#include "third_party/lss/lss/linux_syscall_support.h"
Expand Down

0 comments on commit 28a3998

Please sign in to comment.