Skip to content
  • Cheng Shao's avatar
    0ffc5243
    devx: minor fixes for compile_flags.txt · 0ffc5243
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    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
    0ffc5243
    devx: minor fixes for compile_flags.txt
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    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
Loading