Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d0205d8 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Make __file__ relative to root

Update GN rules so that __file__ is always relative to
bt/system/BUILD.gn rather than the GN root build directory.

Bug: 210526127
Tag: #floss
Test: Observe logs on ChromeOS has shorter __file__ paths
Change-Id: Ia253a75fa18f5f0d2785f2e6b5f69e02890ad294
parent 4e7cdc6b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -102,6 +102,8 @@ config("target_defaults") {
    "-Wno-pessimizing-move",
    "-Wno-unknown-warning-option",
    "-Wno-final-dtor-non-final-class",

    string_join("", ["-ffile-prefix-map=", rebase_path(".", "${root_build_dir}", "."), "/= "])
  ]

  cflags_cc = [