boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

set-environment-stub.after (346B)


      1 #if !BOOTSTRAP
      2     char * path;
      3 
      4     path = getenv("C_INCLUDE_PATH");
      5     if(path != NULL) {
      6         tcc_add_include_path(s, path);
      7     }
      8     path = getenv("CPATH");
      9     if(path != NULL) {
     10         tcc_add_include_path(s, path);
     11     }
     12     path = getenv("LIBRARY_PATH");
     13     if(path != NULL) {
     14         tcc_add_library_path(s, path);
     15     }
     16 #endif
     17 }