Advertisement
DEKTEN

RELAXED_INCLUDE_PATHS

Apr 13th, 2021
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.62 KB | None | 0 0
  1.     The WHY:
  2.     ------------------------------------------------------------
  3.     I figured out a solution using a bit of bash. The reason
  4.     I am asking for such a feature is because I want to make
  5.     sure my project can compile using[ gcc -c AAC2020.C11 ]
  6.     no matter how complex my bash-based build system gets.
  7.  
  8.     I want a low barrier to entry for the code base.
  9.     The bash script is necessary for DEVELOPING/CHANGING
  10.     the code base. But shouldn't be necessary for others who
  11.    just want to include[ AAC2020.C11 ]in their own projects.
  12.    ------------------------------------------------------------
  13.  
  14.  
  15.    The WHAT:
  16.    ------------------------------------------------------------
  17.  
  18.    Compiling[ MAIN_PROJECT_FOLDER ]'s C11 file on
  19.     command line will result in[ EXTENSION_CODE_PROJECT ]'s
  20.    C11 file being included.
  21.  
  22.    
  23.        PARENT_FOLDER[-]
  24.                      |
  25.                      |
  26.                     [-]MAIN_PROJECT_FOLDER
  27.                      |
  28.                     [-]EXTENSION_CODE_PROJECT
  29.  
  30.    ------------------------------------------------------------
  31.  
  32.    Main project's C11 file tried to include say...
  33.     "../EXTENSION_CODE_PROJECT/MAIN.C11" but it doesn't
  34.    exist. Rather than throwing compile time error because
  35.    file does not exist, the compilation just ignores this
  36.    and moves on. (Is there a way to do this without making )
  37.    ( my compiler settings less restrictive? )
  38.  
  39.        PARENT_FOLDER[-]
  40.                      |
  41.                      |
  42.                     [-]MAIN_PROJECT_FOLDER
  43.  
  44.    ------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement