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

escript support -compile([{i, IncludePath}]) #7041

Closed
tmp-reg opened this issue Mar 22, 2023 · 1 comment
Closed

escript support -compile([{i, IncludePath}]) #7041

tmp-reg opened this issue Mar 22, 2023 · 1 comment
Assignees
Labels
enhancement team:VM Assigned to OTP team VM

Comments

@tmp-reg
Copy link

tmp-reg commented Mar 22, 2023

Is your feature request related to a problem? Please describe.
escript requires full path of header file like this:

-include("../../a.hrl").
-include("../../b.hrl").
...

escript file does not support:

-compile([{i, "my include dir"}]).

In the escript.erl, the IncludePath is [], so -include("a.hrl"). cannot be used directly, will report an error can't find include file a.hrl

parse_source(S, File, Fd, StartLine, HeaderSz, CheckOnly) ->
       {PreDefMacros, Module} = pre_def_macros(File),
       IncludePath = [],

Describe the solution you'd like
Does escript consider supporting the specified header file directory? that will be usefull.

@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Mar 27, 2023
@bjorng
Copy link
Contributor

bjorng commented Mar 27, 2023

We intentionally don't support the {i, Path} option in a -compile() attribute (which is documented), and we have no plans to do so in the future.

@bjorng bjorng closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

4 participants