File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,10 @@ add_custom_target("check-libcc2rs"
117117 )
118118
119119add_custom_target ("check-unit"
120- COMMAND "python3"
120+ COMMAND ${CMAKE_COMMAND } -E env
121+ "CC=${CMAKE_C_COMPILER } "
122+ "CXX=${CMAKE_CXX_COMPILER } "
123+ "python3"
121124 "${PROJECT_SOURCE_DIR } /tests/lit/lit.py"
122125 ${LIT_FLAGS}
123126 "${PROJECT_SOURCE_DIR } /tests/unit"
@@ -127,7 +130,10 @@ add_custom_target("check-unit"
127130 )
128131
129132add_custom_target ("check-benchmarks"
130- COMMAND "python3"
133+ COMMAND ${CMAKE_COMMAND } -E env
134+ "CC=${CMAKE_C_COMPILER } "
135+ "CXX=${CMAKE_CXX_COMPILER } "
136+ "python3"
131137 "${PROJECT_SOURCE_DIR } /tests/lit/lit.py"
132138 ${LIT_FLAGS}
133139 "${PROJECT_SOURCE_DIR } /tests/benchmarks"
@@ -152,3 +158,7 @@ add_custom_target("check-rules"
152158 DEPENDS install -rust-toolchain
153159 USES_TERMINAL
154160 )
161+
162+ add_custom_target ("check-all"
163+ DEPENDS check-libcc2rs check-rules check-unit check-benchmarks
164+ )
You can’t perform that action at this time.
0 commit comments