Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lang][Preprocessor] Adds okl/strict_headers option #408

Merged
merged 1 commit into from
Oct 24, 2020

Conversation

dmed256
Copy link
Member

@dmed256 dmed256 commented Oct 24, 2020

Description

Adds the option to include non-standard system headers

> occa translate addVectors.okl
addVectors.okl:1:2: Error: File does not exist
#include "foobar"
 ^

Adding

kernelProps["okl/strict_headers"] = false;

or passing it in the CLI ends up including headers even if OCCA can't find them:

> occa translate -k "okl: { strict_headers: false }" addVectors.okl
...
#include "foobar"
...

@codecov
Copy link

codecov bot commented Oct 24, 2020

Codecov Report

Merging #408 into main will increase coverage by 0.03%.
The diff coverage is 87.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #408      +/-   ##
==========================================
+ Coverage   76.34%   76.37%   +0.03%     
==========================================
  Files         239      239              
  Lines       18396    18413      +17     
==========================================
+ Hits        14044    14063      +19     
+ Misses       4352     4350       -2     
Impacted Files Coverage Δ
src/lang/tokenizer.cpp 80.41% <80.76%> (+0.26%) ⬆️
src/lang/preprocessor.cpp 80.40% <100.00%> (+0.18%) ⬆️
src/tools/sys.cpp 65.31% <0.00%> (+0.16%) ⬆️
src/lang/specialMacros.cpp 60.34% <0.00%> (+1.72%) ⬆️

@dmed256 dmed256 merged commit 41ee6c7 into main Oct 24, 2020
@dmed256 dmed256 deleted the lang/optional-missing-headers branch October 24, 2020 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant