LibCompress: Use a __FILE__-relative path for the brotli dictionary file

This makes it so the generated assembly doesn't depend on
compile-specific search paths, also making it possible to build with
LTO.
This commit is contained in:
Ali Mohammad Pur 2024-01-09 20:20:15 +03:30 committed by Andreas Kling
parent cd4ebc45a0
commit 57ea3e160a
Notes: sideshowbarker 2024-07-17 01:53:23 +09:00
2 changed files with 1 additions and 1 deletions

View file

@ -22,7 +22,7 @@ asm(".section .rodata\n"
".global brotli_dictionary_data\n"
"brotli_dictionary_data:\n");
#endif
asm(".incbin \"LibCompress/BrotliDictionaryData.bin\"\n"
asm(".incbin \"" __FILE__ ".dict.bin\"\n"
#if (!defined(AK_OS_WINDOWS) && !defined(AK_OS_EMSCRIPTEN))
".previous\n");
#else