mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-23 07:52:33 +00:00
Allow using absolute path's in foreign import's (#6999)
Document that `-collection` can be used for foreign imports. Fix absolute path detection on Windows.
This commit is contained in:
@@ -2743,10 +2743,11 @@ gb_internal int print_show_help(String const arg0, String command, String option
|
||||
|
||||
if (check) {
|
||||
if (print_flag("-collection:<name>=<filepath>")) {
|
||||
print_usage_line(2, "Defines a library collection used for imports.");
|
||||
print_usage_line(2, "Defines a library collection used for imports and foreign imports.");
|
||||
print_usage_line(2, "Example: -collection:shared=dir/to/shared");
|
||||
print_usage_line(2, "Usage in Code:");
|
||||
print_usage_line(3, "import \"shared:foo\"");
|
||||
print_usage_line(3, "foreign import lib \"shared:libfoo.a\"");
|
||||
}
|
||||
|
||||
if (print_flag("-custom-attribute:<string>")) {
|
||||
|
||||
Reference in New Issue
Block a user