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

#spec.objects extension always ".o" #68

Open
ghost opened this issue Jul 17, 2020 · 0 comments
Open

#spec.objects extension always ".o" #68

ghost opened this issue Jul 17, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 17, 2020

when I compile this on windows
{port_specs, [
{"priv/enif_protobuf.dll", [
"c_src/enif_protobuf.c",
"c_src/ep_cache.c",
"c_src/ep_decoder.c",
"c_src/ep_encoder.c",
"c_src/ep_node.c"
]}
]}.
I find that "pc_port_specs:get_port_spec/3" always replace extension to ".o", then I get this(DEBUG=1)
sh(cmd /q /c link.exe c_src/enif_protobuf.o c_src/ep_cache.o c_src/ep_decoder.o c_src/ep_encoder.o c_src/ep_node.o /DLL

in fact, "pc_compilation:compile_each/5" create ".obj" file

so, i think "pc_port_specs:get_port_spec/3" shoule use "pc_port_specs:object_file_ext/0" to decide ext too

@ghost ghost closed this as completed Jul 17, 2020
@ghost ghost reopened this Jul 17, 2020
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

No branches or pull requests

0 participants