summaryrefslogtreecommitdiff
path: root/CC/test
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-13 17:20:01 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-12-16 17:18:01 +0100
commit95284ec611a53ca9c7925aad4bbe3f6561de018a (patch)
treeda5b6e44eafd8a234015a45317f86294d9513085 /CC/test
parent606575738c3489fb9a23b772bfe8f9d29236c96b (diff)
downloadrules-cc-95284ec611a53ca9c7925aad4bbe3f6561de018a.tar.gz
rules: Add support for shared libraries
Diffstat (limited to 'CC/test')
-rw-r--r--CC/test/RULES9
1 files changed, 9 insertions, 0 deletions
diff --git a/CC/test/RULES b/CC/test/RULES
index 8269b9f..60f33ab 100644
--- a/CC/test/RULES
+++ b/CC/test/RULES
@@ -23,6 +23,7 @@
, "ADD_CXXFLAGS"
, "ADD_LDFLAGS"
, "ENV"
+ , "BUILD_POSITION_INDEPENDENT"
, "TEST_ENV"
, "CC_TEST_LAUNCHER"
]
@@ -84,6 +85,7 @@
, "taken from the [\"CC\", \"defaults\"] target"
]
, "ENV": ["The environment for any action generated."]
+ , "BUILD_POSITION_INDEPENDENT": ["Build with -fPIC."]
, "TEST_ENV": ["The environment for executing the test runner."]
, "CC_TEST_LAUNCHER":
[ "List of strings representing the launcher that is prepend to the"
@@ -111,6 +113,8 @@
, "compile-args-deps": ["./", "..", "compile-args-deps"]
, "link-deps": ["./", "..", "link-deps"]
, "link-args-deps": ["./", "..", "link-args-deps"]
+ , "run-libs-deps": ["./", "..", "run-libs-deps"]
+ , "run-libs-args-deps": ["./", "..", "run-libs-args-deps"]
, "binary": ["./", "..", "bin artifact"]
, "host transition": ["transitions", "for host"]
}
@@ -183,6 +187,10 @@
]
}
]
+ , ["run-libs", {"type": "CALL_EXPRESSION", "name": "run-libs-deps"}]
+ , [ "run-libs-args"
+ , {"type": "CALL_EXPRESSION", "name": "run-libs-args-deps"}
+ ]
, ["binary", {"type": "CALL_EXPRESSION", "name": "binary"}]
, [ "staged test binary"
, { "type": "map_union"
@@ -287,6 +295,7 @@
, {"type": "var", "name": "test-args"}
, {"type": "var", "name": "test-launcher"}
, {"type": "var", "name": "staged test binary"}
+ , {"type": "var", "name": "run-libs"}
]
}
, "cmd": ["./runner"]