mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Make conditionals.py work on NT/MinGW.
[SVN r16834]
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# Test conditional properties
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
from BoostBuild import Tester, List, exe_suffix
|
||||
import os
|
||||
from string import strip
|
||||
|
||||
@@ -16,13 +16,13 @@ int main() {}
|
||||
""")
|
||||
t.write("Jamfile", "exe a : a.cpp : <link>static:<define>STATIC ;")
|
||||
t.run_build_system("link=static")
|
||||
t.expect_addition("bin/gcc/debug/link-static/main-target-a/a")
|
||||
t.expect_addition("bin/gcc/debug/link-static/main-target-a/a" + exe_suffix)
|
||||
|
||||
t.write("Jamfile", """
|
||||
project : requirements <link>static:<define>STATIC ;
|
||||
exe a : a.cpp ;
|
||||
""")
|
||||
t.run_build_system("link=static")
|
||||
t.expect_addition("bin/gcc/debug/link-static/a")
|
||||
t.expect_addition("bin/gcc/debug/link-static/a" + exe_suffix)
|
||||
|
||||
t.cleanup()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Test conditional properties
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
from BoostBuild import Tester, List, exe_suffix
|
||||
import os
|
||||
from string import strip
|
||||
|
||||
@@ -16,13 +16,13 @@ int main() {}
|
||||
""")
|
||||
t.write("Jamfile", "exe a : a.cpp : <link>static:<define>STATIC ;")
|
||||
t.run_build_system("link=static")
|
||||
t.expect_addition("bin/gcc/debug/link-static/main-target-a/a")
|
||||
t.expect_addition("bin/gcc/debug/link-static/main-target-a/a" + exe_suffix)
|
||||
|
||||
t.write("Jamfile", """
|
||||
project : requirements <link>static:<define>STATIC ;
|
||||
exe a : a.cpp ;
|
||||
""")
|
||||
t.run_build_system("link=static")
|
||||
t.expect_addition("bin/gcc/debug/link-static/a")
|
||||
t.expect_addition("bin/gcc/debug/link-static/a" + exe_suffix)
|
||||
|
||||
t.cleanup()
|
||||
|
||||
Reference in New Issue
Block a user