diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-11-04 15:06:37 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-11-04 15:06:37 -0600 |
| commit | 02459f3d82eda6a79f58eed8b50526089a9cb47c (patch) | |
| tree | f6ee2c9cede0945b23eb818aca3a939c657aa6c4 | |
| parent | b78f6d38fdfabe7fddc5aa1abe7cae41d77e46ad (diff) | |
| download | nimgen-02459f3d82eda6a79f58eed8b50526089a9cb47c.tar.gz nimgen-02459f3d82eda6a79f58eed8b50526089a9cb47c.zip | |
Remove nimfastText from gcc < 5.x
| -rw-r--r-- | tests/nimgentest.nims | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/nimgentest.nims b/tests/nimgentest.nims index cb70a63..e544f43 100644 --- a/tests/nimgentest.nims +++ b/tests/nimgentest.nims @@ -8,8 +8,11 @@ var "nimtess2" ] -var nimver = staticExec("nim -v").split("\n")[0].split(" ")[3] -if nimver >= "0.19.0": +let + gccver = staticExec("gcc --version").split("\n")[0].split(" ")[^1] + nimver = staticExec("nim -v").split("\n")[0].split(" ")[3] + +if nimver >= "0.19.0" and gccver >= "5.0.0": comps.add("nimfastText") if detectOs(Windows): @@ -18,6 +21,10 @@ if detectOs(Windows): if not detectOs(MacOSX): comps.add("nimzbar") +echo "Testing comps:" +for comp in comps: + echo " " & comp + if paramCount() > 2: for i in 3 .. paramCount(): if paramStr(i) == "--full": |
