Skip to content

Commit

Permalink
Log PKG_CONFIG_PATH to mkmf.log
Browse files Browse the repository at this point in the history
This will help us investigate #2068 .
  • Loading branch information
ivoanjo committed Jun 7, 2022
1 parent 9e163c4 commit ce7884d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/ddtrace_profiling_native_extension/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def skip_building_extension!(reason)
if fail_install_if_missing_extension
require 'mkmf'
Logging.message(
"\nFailure cause: #{Datadog::Profiling::NativeExtensionHelpers::Supported.render_skipped_reason_file(**reason)}"
' [ddtrace] Failure cause: ' \
"#{Datadog::Profiling::NativeExtensionHelpers::Supported.render_skipped_reason_file(**reason)}\n"
)
else
File.write('Makefile', 'all install clean: # dummy makefile that does nothing')
Expand Down Expand Up @@ -139,6 +140,7 @@ def add_compiler_flag(flag)

# If we got here, libddprof is available and loaded
ENV['PKG_CONFIG_PATH'] = "#{ENV['PKG_CONFIG_PATH']}:#{Libddprof.pkgconfig_folder}"
Logging.message(" [ddtrace] PKG_CONFIG_PATH set to '#{ENV['PKG_CONFIG_PATH']}'\n")
unless pkg_config('ddprof_ffi_with_rpath')
skip_building_extension!(Datadog::Profiling::NativeExtensionHelpers::Supported::FAILED_TO_CONFIGURE_LIBDDPROF)
end
Expand Down

0 comments on commit ce7884d

Please sign in to comment.