This repository was archived by the owner on Jun 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
steps :
23
23
- uses : actions/checkout@v2
24
+ with :
25
+ fetch-depth : 0
24
26
25
27
- uses : conda-incubator/setup-miniconda@v2
26
28
with :
Original file line number Diff line number Diff line change 37
37
- name : build using cmake
38
38
run : make cmake-build
39
39
40
+ - name : test flags
41
+ run : |
42
+ bin/arx --version
43
+
40
44
- name : lint
41
45
run : |
42
46
pre-commit install
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"countMatches" : true
23
+ },
24
+ {
25
+ "files" : [" arx/src/arx.cpp" ],
26
+ "from" : " std::string ARX_VERSION = \" .*\" ; // semantic-release" ,
27
+ "to" : " std::string ARX_VERSION = \" ${nextRelease.version}\" ; // semantic-release" ,
28
+ "results" : [
29
+ {
30
+ "file" : " arx/src/arx.cpp" ,
31
+ "hasChanged" : true ,
32
+ "numMatches" : 1 ,
33
+ "numReplacements" : 1
34
+ }
35
+ ],
36
+ "countMatches" : true
23
37
}
24
38
]
25
39
}
Original file line number Diff line number Diff line change 14
14
15
15
#include < cctype>
16
16
#include < cstdio>
17
+ #include < iostream>
17
18
#include < map>
18
19
#include < string>
19
20
#include < vector>
30
31
#include " llvm/Support/TargetSelect.h"
31
32
#include " llvm/Transforms/Scalar.h"
32
33
33
- // using namespace llvm;
34
- // using namespace llvm::orc;
34
+ std::string ARX_VERSION = " 1.0.0" ; // semantic-release
35
35
36
36
// ===----------------------------------------------------------------------===//
37
37
// Lexer
@@ -1433,7 +1433,14 @@ extern "C" DLLEXPORT double printd(double X) {
1433
1433
// Main driver code.
1434
1434
// ===----------------------------------------------------------------------===//
1435
1435
1436
- int main () {
1436
+ int main (int argc, const char * argv[]) {
1437
+ for (int i = 0 ; i < argc; ++i) {
1438
+ if (std::string (argv[i]) == " --version" ) {
1439
+ std::cout << " arx version: " << ARX_VERSION << std::endl;
1440
+ return 0 ;
1441
+ }
1442
+ }
1443
+
1437
1444
llvm::InitializeNativeTarget ();
1438
1445
llvm::InitializeNativeTargetAsmPrinter ();
1439
1446
llvm::InitializeNativeTargetAsmParser ();
You can’t perform that action at this time.
0 commit comments