Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjkelly/compileroptions.jl
A Julia package for reading compiler options
https://github.com/sjkelly/compileroptions.jl
Last synced: about 2 months ago
JSON representation
A Julia package for reading compiler options
- Host: GitHub
- URL: https://github.com/sjkelly/compileroptions.jl
- Owner: sjkelly
- License: other
- Created: 2014-09-16T03:25:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T03:42:21.000Z (over 9 years ago)
- Last Synced: 2024-10-13T19:37:33.584Z (3 months ago)
- Language: Julia
- Homepage:
- Size: 164 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CompilerOptions
[![Build Status](https://travis-ci.org/sjkelly/CompilerOptions.jl.svg?branch=master)](https://travis-ci.org/sjkelly/CompilerOptions.jl)
[![Coverage Status](https://img.shields.io/coveralls/sjkelly/CompilerOptions.jl.svg)](https://coveralls.io/r/sjkelly/CompilerOptions.jl?branch=master)This is a basic package for providing introsepction into Julia's compiler
options. This functionality is now part of Base in 0.4, so this package aims
provide a consistent API between 0.3 and 0.4.## Use
### Julia 0.3
CompilerOptions defines the following for Julia 0.3:
```
immutable JLOptions
build_path::Ptr{Cchar}
cpu_target::Ptr{Cchar}
code_coverage::Int8
malloc_log::Int8
check_bounds::Int8
int_literals::Cint
endJLOptions() = unsafe_load(cglobal(:jl_compileropts, JLOptions))
```For example, it is now possible to see if Julia is being run with code-coverage
enabled:`JLOptions().code_coverage`
### Julia 0.4
Julia 0.4 provides the same type, but is unexported. This package simply
provides an alias for the function in Base:`JLOptions() = Base.JLOptions()`
## Credit
This package was kick started with the help of ihnorton, jakebolewski, and staticfloat.* https://gist.github.com/staticfloat/93d7050a08ff7bb52373
* https://groups.google.com/d/msg/julia-users/TkYi6CJrSVE/L-ydZ67ujiUJ## License
Available under the [MIT "Expat" License](http://en.wikipedia.org/wiki/MIT_License). See: [LICENSE.md](./LICENSE.md).