Skip to content

Commit

Permalink
Build folder (#528)
Browse files Browse the repository at this point in the history
* validate Pointer incl. tests

* using cargo clippy for coding style as well as cargo fmt

* multi-type declarations incl. tests

* subcommand as well as simple build description file

* improved subcommand

* improved build description file

* adding libraries and parsing them

* documentation and minor improvements

* Pull Request improvements

* package_commands for build description file

* changes after review

* improvements from review

* adding sysroot and target-triple as inline parameters for subcommand

* addingchangable build location

* typos from Build Description File #523

* tests added

* Small review changes

* change relative path to absolut, improved tests

* adapt test for windows

* tests improved

* Made the build work regadless of start location

* make every key optional/default

* typo

* Added lib location to build parameters, made sure default names are calculated from input

Co-authored-by: Ghaith Hachem <[email protected]>
  • Loading branch information
flavioBachmann and ghaith authored Aug 2, 2022
1 parent 7f70105 commit 26dbfac
Show file tree
Hide file tree
Showing 17 changed files with 521 additions and 257 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"kind": "bin"
}
},
"args": ["--ir", "/home/ghaith/git/oscat/oscat_single_file.st","/home/ghaith/git/oscat/std_stubs.st", "-o", "/tmp/comp.ll"],
"args": ["build", "..\\..\\build_commands_tests\\test_proj\\plc.json"],
"cwd": "${workspaceFolder}"
},
{
Expand Down
73 changes: 37 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Similarly to specifying an output file via the `-o` or `--output` option, in the

### target

To build and compile [structured text](https://en.wikipedia.org/wiki/Structured_text) for the rigth platform we need to specify the `target`. As `rustyc` is using [LLVM](https://en.wikipedia.org/wiki/LLVM) a target-tripple supported by LLVM needs to be selected. The default `target` is `x86_64-linux-gnu`.
To build and compile [structured text](https://en.wikipedia.org/wiki/Structured_text) for the rigth platform we need to specify the `target`. As `rustyc` is using [LLVM](https://en.wikipedia.org/wiki/LLVM) a target-tripple supported by LLVM needs to be selected. The default `target` is the host machine's target. So if a dev container on an `x86_64-docker` is used the target is `x86_64-linux-gnu`.


### compile_type
Expand Down
33 changes: 0 additions & 33 deletions examples/plc.json

This file was deleted.

Loading

0 comments on commit 26dbfac

Please sign in to comment.