Skip to content

Commit

Permalink
fix compile flags
Browse files Browse the repository at this point in the history
  • Loading branch information
GraDje13 committed Aug 7, 2024
1 parent cbfadcb commit 96ad9ed
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/cff/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ impl CFFExpression {
path: PathBuf,
export_settings: &ExportSettings,
) -> Result<(), Report> {
if !export_settings.compile_cff && export_settings.compile_separate_orientations {
if !export_settings.compile_cff && !export_settings.compile_separate_orientations {
return Ok(());
}

Expand Down Expand Up @@ -590,18 +590,17 @@ impl CFFExpression {

cpp_str.push_str(&orientation_source_str);
}

std::fs::write(path_to_code, cpp_str)?;
let exported_code =
ExportedCode::new(path_to_code_str.to_string(), "joint".to_string());
exported_code.compile(
path_to_so_str,
export_settings
.gammaloop_compile_options
.to_symbolica_compile_options(),
)?;
}

std::fs::write(path_to_code, cpp_str)?;
let exported_code = ExportedCode::new(path_to_code_str.to_string(), "joint".to_string());
exported_code.compile(
path_to_so_str,
export_settings
.gammaloop_compile_options
.to_symbolica_compile_options(),
)?;

let metadata = CompiledCFFExpressionMetaData {
name: path_to_compiled,
num_orientations: self.get_num_trees(),
Expand Down

0 comments on commit 96ad9ed

Please sign in to comment.