File tree Expand file tree Collapse file tree 3 files changed +14
-25
lines changed Expand file tree Collapse file tree 3 files changed +14
-25
lines changed Original file line number Diff line number Diff line change 7171 - name : Build and Test StableHLO (with AddressSanitizer)
7272 shell : bash
7373 run : |
74- cmake --build --preset debug --target check-stablehlo-ci
74+ cmake --preset debug
75+ cmake --build ./build --target check-stablehlo-ci
7576
7677 - name : Build and Test StableHLO (with Python bindings)
7778 shell : bash
7879 run : |
79- cmake --build --preset debug-python --target check-stablehlo-ci
80+ cmake --preset debug-python
81+ cmake --build ./build --target check-stablehlo-ci
Original file line number Diff line number Diff line change 1919 "CMAKE_PLATFORM_NO_VERSIONED_SONAME" : " ON" ,
2020 "LLVM_VERSION_SUFFIX" : " " ,
2121 "LLVM_USE_SPLIT_DWARF" : " ON" ,
22- "STABLEHLO_ENABLE_SPLIT_DWARF" : " ON"
22+ "STABLEHLO_ENABLE_SPLIT_DWARF" : " ON" ,
23+ "STABLEHLO_ENABLE_SANITIZER" : " address"
2324 }
2425 },
2526 {
3233 "STABLEHLO_ENABLE_SANITIZER" : " OFF"
3334 }
3435 }
35- ],
36- "buildPresets" : [
37- {
38- "name" : " debug" ,
39- "displayName" : " Build Debug" ,
40- "configurePreset" : " debug"
41- },
42- {
43- "name" : " debug-python" ,
44- "displayName" : " Build Debug w/ python bindings" ,
45- "configurePreset" : " debug-python"
46- }
47- ]
36+ ]
4837}
Original file line number Diff line number Diff line change @@ -58,16 +58,13 @@ Here's how to build the StableHLO repo on Linux or macOS:
5858
5959 You need to do this every time ` llvm_version.txt ` changes.
6060
61- 4 . Build StableHLO as a standalone library:
61+ 4 . Build StableHLO as a standalone library and run all the tests :
6262
6363 ``` sh
64- cmake --build --preset debug
65- ```
66-
67- 5 . Now you can make sure it works by running some tests:
68-
69- ``` sh
70- cmake --build --preset debug --target check-stablehlo-tests
64+ # first configure the build system
65+ cmake --preset debug
66+ # then build the project
67+ cmake --build ./build --target check-stablehlo-ci
7168 ```
7269
7370 You should see results like this:
@@ -79,7 +76,8 @@ Here's how to build the StableHLO repo on Linux or macOS:
7976 Passed: 137 (100.00%)
8077 ```
8178
82- This runs all the tests in ` stablehlo/tests/ ` .
79+ This runs all the tests in ` stablehlo/tests/ ` . You can change the target
80+ to build or test specific parts of the project.
8381
8482## Python
8583
You can’t perform that action at this time.
0 commit comments