Skip to content

Commit 709c5e4

Browse files
committed
Set 'clink_profile' env var to override settings path (fixes #390).
1 parent c1ae993 commit 709c5e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clink/dll/dll.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ static BOOL on_dll_attach()
100100

101101
// Get the inject arguments.
102102
get_inject_args(GetCurrentProcessId());
103+
104+
// The "clink_profile" environment variable can be used to override --profile
105+
GetEnvironmentVariable("clink_profile", g_inject_args.profile_path,
106+
sizeof_array(g_inject_args.profile_path));
107+
103108
if (g_inject_args.profile_path[0] != '\0')
104109
{
105110
set_config_dir_override(g_inject_args.profile_path);

0 commit comments

Comments
 (0)