Skip to content

Commit

Permalink
feat: set default C options to match C++
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Aug 8, 2021
1 parent 4e8a394 commit e992d1b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const langConfig = (() => {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['c', {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['d', {
mainRegex: /\bmain\(/
}]
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ const langConfig = (() => {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['c', {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['d', {
mainRegex: /\bmain\(/
}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,10 @@ const langConfig = (() => {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['c', {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['d', {
mainRegex: /\bmain\(/
}]
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,10 @@ const langConfig = (() => {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['c', {
options: '-O2 -march=haswell -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter',
mainRegex: /\bmain\(/
}],
['d', {
mainRegex: /\bmain\(/
}]
Expand Down

Large diffs are not rendered by default.

0 comments on commit e992d1b

Please sign in to comment.