-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* C++ files * Initial support for edgcpfe * start making the libc_impl functions * /usr/lib/DCC redirection and non implemented functions * cp CC 7.1 * CC for mac * edgcpfe hack * fix mac * Rename CC to NCC * wrapper_getopt * wrapper_fputc * somewhat progress on getopt * proc_command_line testing * maybe finally works? * remove some prints * delete some files * cleanup * remove getopt debug strings * more cleanup * format * Update DOCS.md Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
- Loading branch information
1 parent
e1320ea
commit c4d24ce
Showing
14 changed files
with
416 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,10 @@ ctx.c.m2c | |
*.s | ||
|
||
.DS_Store | ||
|
||
|
||
*.T | ||
*.o | ||
*.ii | ||
*.B | ||
*.G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# Custom Functionality | ||
|
||
## Redirection | ||
|
||
IDO recomp currently has two forms of path redirection, both involving the `/usr` folder. | ||
|
||
### `/usr/lib` | ||
In order for users to not having to worry about installing the binaries in particular locations in `/usr/lib`, recomp automatically redirects `/usr/lib/` paths. This is done by determining the location of `cc` and redirecting to the same directory. This does mean all the binaries and `err.english.cc` are expected to be a part of a single flattened directory. | ||
### `/usr/lib` and `/usr/lib/DCC` | ||
|
||
In order for users to not having to worry about installing the binaries in particular locations in `/usr/lib` or `/usr/lib/DCC`, recomp automatically redirects `/usr/lib/` and `/usr/lib/DCC` paths. This is done by determining the location of `cc` and redirecting to the same directory. This does mean all the binaries and `err.english.cc` are expected to be a part of a single flattened directory. | ||
|
||
It is also possible to override the auto redirect by using the environment variable `USR_LIB` with the desired redirection path. This can be used if the binaries are not in a flattened directory with `cc` or if on Linux and are unable to read `/proc/self/exe`. | ||
|
||
Wrapper functions implementing this redirection: | ||
|
||
* `init_file` | ||
* `wrapper_execvp` | ||
* `wrapper_open` | ||
|
||
### `/usr/include` | ||
|
||
### /usr/include | ||
The other form of redirection is completely optional and is done by setting the environment variable `USR_INCLUDE` to the desired redirection path. This will than redirect all opened files files there. This is done so that the `mdebug` section file paths will still use `/usr/include` path, but the files themselves can be located elsewhere for greater flexibility. | ||
|
||
Wrapper functions implementing this redirection: | ||
|
||
* `wrapper_open` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.