Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 0ffc5243 by Cheng Shao at 2025-12-04T04:38:09-05:00 devx: minor fixes for compile_flags.txt This patch includes minor fixes for compile_flags.txt to improve developer experience when using clangd as language server to hack on RTS C sources: - Ensure `-fPIC` is passed and `__PIC__` is defined, to be coherent with `-DDYNAMIC` and ensure the `__PIC__` guarded code paths are indexed - Add the missing `-DRtsWay` definition, otherwise a few source files like `RtsUtils.c` and `Trace.c` would produce clangd errors - - - - - 1 changed file: - compile_flags.txt Changes: ===================================== compile_flags.txt ===================================== @@ -1,3 +1,6 @@ +-fPIC +-U__PIC__ +-D__PIC__ -Wimplicit -include rts/include/ghcversion.h @@ -27,3 +30,4 @@ rts/include/ghcversion.h -DDEBUG -DDYNAMIC -DPROFILING +-DRtsWay="rts_thr_debug_p_dyn" View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0ffc5243763027359cf0d070cbe483b3... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0ffc5243763027359cf0d070cbe483b3... You're receiving this email because of your account on gitlab.haskell.org.