From 31d9df9e75f2e3e1499d1510d196edaeeb2db2f3 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 30 May 2018 11:34:03 +0200 Subject: [PATCH] runnableExamples: use the self exe to test the examples --- compiler/sem.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sem.nim b/compiler/sem.nim index d0f1065261..01e816f5cc 100644 --- a/compiler/sem.nim +++ b/compiler/sem.nim @@ -607,7 +607,7 @@ proc testExamples(c: PContext) = elif isDefined(c.config, "cpp"): "cpp" elif isDefined(c.config, "objc"): "objc" else: "c" - if os.execShellCmd("nim " & backend & " -r " & outp) != 0: + if os.execShellCmd(os.getAppFilename() & " " & backend & " -r " & outp) != 0: quit "[Examples] failed" removeFile(outp)