Skip to content

Commit

Permalink
Check that ar_path is defined before use
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-lunarg committed Aug 13, 2024
1 parent ee66877 commit 83cd92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if (!is_android) {
library_type = "static_library"
}
support_unknown_function_handling = false
if (ar_path != "" && !is_win && (current_cpu == "arm64" || current_cpu == "x86_64")) {
if (defined(ar_path) && ar_path != "" && !is_win && (current_cpu == "arm64" || current_cpu == "x86_64")) {
support_unknown_function_handling = true
static_library("asm_offset") {
sources = [ "loader/asm_offset.c" ]
Expand Down

0 comments on commit 83cd92c

Please sign in to comment.