Skip to content

Commit

Permalink
Merge pull request #358 from realm/revert-351-objcargs
Browse files Browse the repository at this point in the history
Revert "Always add objective-c args when objective-c mode is enabled."
  • Loading branch information
jpsim committed Nov 11, 2015
2 parents c440c37 + 90f8dc9 commit 0968d01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

##### Bug Fixes

* --objc arguments are now joined with provided -x arguments.
[Jeff Verkoeyen](https://github.com/jverkoey)
[#351](https://github.com/realm/jazzy/issues/351)
* None.

## 0.4.0

Expand Down
9 changes: 6 additions & 3 deletions lib/jazzy/sourcekitten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@ def self.subdir_for_doc(doc, parents)
def self.arguments_from_options(options)
arguments = ['doc']
if options.objc_mode
arguments += ['--objc', options.umbrella_header.to_s, '-x',
'objective-c', '-I',
options.framework_root.to_s]
if options.xcodebuild_arguments.empty?
arguments += ['--objc', options.umbrella_header.to_s, '-x',
'objective-c', '-isysroot',
`xcrun --show-sdk-path`.chomp, '-I',
options.framework_root.to_s]
end
elsif !options.module_name.empty?
arguments += ['--module-name', options.module_name]
end
Expand Down

0 comments on commit 0968d01

Please sign in to comment.