diff --git a/platform/node/cmake/module.cmake b/platform/node/cmake/module.cmake index 90e8ce455..6cbc24db0 100644 --- a/platform/node/cmake/module.cmake +++ b/platform/node/cmake/module.cmake @@ -160,7 +160,7 @@ function(add_node_module NAME) ) endif() - target_link_libraries(${_TARGET} PRIVATE ${NAME}) + target_link_libraries(${_TARGET} PRIVATE ${NAME} mbgl-compiler-options) if(APPLE) # Ensures that linked symbols are loaded when the module is loaded instead of causing diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index bc0ac2a70..a4d1e4886 100644 --- a/platform/node/src/node_map.cpp +++ b/platform/node/src/node_map.cpp @@ -192,7 +192,7 @@ void NodeMap::New(const Nan::FunctionCallbackInfo& info) { info.This()->SetInternalField(1, options); mbgl::FileSourceManager::get()->registerFileSourceFactory( - mbgl::FileSourceType::ResourceLoader, [](const mbgl::ResourceOptions& resourceOptions, const mbgl::ClientOptions& clientOptions) { + mbgl::FileSourceType::ResourceLoader, [](const mbgl::ResourceOptions& resourceOptions, const mbgl::ClientOptions&) { return std::make_unique( reinterpret_cast(resourceOptions.platformContext())); });