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

Allow the user to pass arbitrary C flags (on all platforms) #665

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julie-is-late
Copy link

Since PC.jl now exposes c_driver_program which allows the users to
specify their own C wrapper program, it would be nice to be able to pass
in more variables which might be best defined at build time.

Currently this functionality is effectively limited to Linux as
specifying $JULIA_CC will prevent PC.jl from inferring gcc.exe from
the relative mingw installation.

@julie-is-late
Copy link
Author

Replaces #652 to no longer require a keyword argument.

@julie-is-late julie-is-late force-pushed the c_defines_2 branch 2 times, most recently from dce0653 to 80ebaa2 Compare February 12, 2022 02:55
Since PC.jl now exposes `c_driver_program` which allows the users to
specify their own C wrapper program, it would be nice to be able to pass
in more variables which might be best defined at build time.

Currently this functionality is effectively limited to Linux as
specifying $JULIA_CC will prevent PC.jl from inferring gcc.exe from
the relative mingw installation.
@julie-is-late
Copy link
Author

Apologies for the commit spam. Sleepy brain forgot to activate the project before running the tests and was very confused about why it was failing remotely.

@codecov
Copy link

codecov bot commented Feb 12, 2022

Codecov Report

Merging #665 (3bd3fa1) into master (94fdba2) will increase coverage by 0.94%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #665      +/-   ##
==========================================
+ Coverage   94.14%   95.08%   +0.94%     
==========================================
  Files           2        2              
  Lines         461      468       +7     
==========================================
+ Hits          434      445      +11     
+ Misses         27       23       -4     
Impacted Files Coverage Δ
src/PackageCompiler.jl 95.52% <80.00%> (+0.79%) ⬆️
src/juliaconfig.jl 90.69% <0.00%> (+2.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94fdba2...3bd3fa1. Read the comment docs.

@julie-is-late julie-is-late changed the title Allow the user to define arbitrary C variables (on all platforms) Allow the user to pass arbitrary C flags (on all platforms) Feb 12, 2022
@sjkelly
Copy link
Collaborator

sjkelly commented Mar 18, 2024

Also see:
#920

In #929 I am attempting to make a config struct, which seems like a more composable and streamlined way to to this.

@julie-is-late
Copy link
Author

That’s a much better way to organize it in general, so having this covered in that would be fantastic.

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.

None yet

2 participants