Skip to content

Commit

Permalink
add -g to linkopts
Browse files Browse the repository at this point in the history
  • Loading branch information
fighet-parnet committed Jun 27, 2023
1 parent ac6d9c7 commit fef5f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazel/common_settings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def vere_library(copts = [], linkopts = [], **kwargs):
"@platforms//os:linux": ["-g"],
"//conditions:default": [],
}),
linkopts = linkopts + select({
linkopts = linkopts + ['-g'] + select({
"//:lto": ['-flto'],
"//:thinlto": ['-flto=thin'],
"//conditions:default": []
Expand All @@ -50,7 +50,7 @@ def vere_binary(copts = [], linkopts = [], **kwargs):
"@platforms//os:linux": ["-g"],
"//conditions:default": [],
}),
linkopts = linkopts + select({
linkopts = linkopts + ['-g'] + select({
"//:lto": ['-flto'],
"//:thinlto": ['-flto=thin'],
"//conditions:default": []
Expand Down

0 comments on commit fef5f2d

Please sign in to comment.