aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2021-02-11 19:28:57 -0500
committerIan Lance Taylor <iant@golang.org>2021-02-12 11:18:32 -0800
commit9769564e7456453e2273071d0faa5aab2554ff78 (patch)
tree3a471e8ee60b7be687ab7501f70379618adcf174 /gcc/ada/gcc-interface/utils.c
parentf3d7fd1475eb1ed2b3a39f988b33db176d4f7419 (diff)
downloadgcc-9769564e7456453e2273071d0faa5aab2554ff78.zip
gcc-9769564e7456453e2273071d0faa5aab2554ff78.tar.gz
gcc-9769564e7456453e2273071d0faa5aab2554ff78.tar.bz2
compiler: open byte slice and string embeds using the absolute path
The paths vector contains the names of the files that the embed_files_ map is keyed by. While the code processing embed.FS values looks up the paths in the embed_files_ map, the code processing string and byte slice embeds tries opening the files using their names directly. Look up the full paths in the embed_files_ map when opening them. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/291429
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions